mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-21 09:16:30 -05:00
enhancement(frontend): inlined buttons
Signed-off-by: Avinash <avinash.kumar.cs92@gmail.com>
This commit is contained in:
parent
c21b2a7a17
commit
9bf8f57475
2 changed files with 17 additions and 17 deletions
|
@ -157,7 +157,7 @@
|
|||
"issueTracker": "Found a bug? Fill an issue!",
|
||||
"sourceCode": "Read the source code",
|
||||
"versionInfo": "Version info",
|
||||
"title": "Your username"
|
||||
"title": "Running HedgeDoc on version"
|
||||
}
|
||||
},
|
||||
"profile": {
|
||||
|
|
|
@ -40,27 +40,27 @@ export const VersionInfoModal: React.FC<CommonModalProps> = ({ onHide, show }) =
|
|||
<CommonModal
|
||||
{...cypressId('version-modal')}
|
||||
show={show}
|
||||
modalSize={'sm'}
|
||||
onHide={onHide}
|
||||
showCloseButton={true}
|
||||
titleI18nKey={'landing.versionInfo.title'}>
|
||||
<Modal.Body>
|
||||
<h5>HedgeDoc</h5>
|
||||
<CopyableField content={backendVersion} />
|
||||
<ShowIf condition={!!links.sourceCode}>
|
||||
<TranslatedExternalLink
|
||||
i18nKey={'landing.versionInfo.sourceCode'}
|
||||
className={'btn btn-sm btn-primary d-block mb-2'}
|
||||
href={links.sourceCode}
|
||||
/>
|
||||
</ShowIf>
|
||||
<ShowIf condition={!!links.issues}>
|
||||
<TranslatedExternalLink
|
||||
i18nKey={'landing.versionInfo.issueTracker'}
|
||||
className={'btn btn-sm btn-primary d-block mb-2'}
|
||||
href={links.issues}
|
||||
/>
|
||||
</ShowIf>
|
||||
<div className='d-flex justify-content-between mt-3'>
|
||||
<ShowIf condition={!!links.sourceCode}>
|
||||
<TranslatedExternalLink
|
||||
i18nKey={'landing.versionInfo.sourceCode'}
|
||||
className={'btn btn-primary d-block mb-2'}
|
||||
href={links.sourceCode}
|
||||
/>
|
||||
</ShowIf>
|
||||
<ShowIf condition={!!links.issues}>
|
||||
<TranslatedExternalLink
|
||||
i18nKey={'landing.versionInfo.issueTracker'}
|
||||
className={'btn btn-primary d-block mb-2'}
|
||||
href={links.issues}
|
||||
/>
|
||||
</ShowIf>
|
||||
</div>
|
||||
</Modal.Body>
|
||||
</CommonModal>
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue