Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

added doc reference in settings pane #383

Merged
merged 1 commit into from
May 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion frontend/public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,8 @@
"workstation": "Select workstation:",
"student": "student",
"teacher": "teacher",
"admin": "admin"
"admin": "admin",
"docs_url": "documentation"
},
"join_course": {
"message": "Do you want to join the course:",
Expand Down
3 changes: 2 additions & 1 deletion frontend/public/locales/nl/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,8 @@
"workstation": "Selecteer werkstation:",
"student": "student",
"teacher": "lesgever",
"admin": "beheerder"
"admin": "beheerder",
"docs_url": "documentatie"
},
"join_course": {
"message": "Wil je het volgende vak volgen:",
Expand Down
9 changes: 6 additions & 3 deletions frontend/src/components/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,12 @@ function Settings(props: { home: string }): JSX.Element {
<div className={"modal-background"} onClick={handleSettings}/>
<div className={"card popup"}>
<div className={"is-flex is-align-items-center is-justify-content-right"}>
<span className={"py-2"}>
<DropdownLanguage/>
</span>
<Link to={`https://selab-2.github.io/UGent-2/${t('settings.docs_url')}`} target={"_blank"}>
<button className={"button"}>docs</button>
</Link>
<span className={"py-2"}>
<DropdownLanguage/>
</span>
<button className={"button mx-2 my-1"} onClick={handleSettings}><IoMdClose/></button>
</div>
<div className={"px-5 pb-5"}>
Expand Down