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

Commit

Permalink
Merge pull request #383 from SELab-2/doc_ref
Browse files Browse the repository at this point in the history
added doc reference in settings pane
  • Loading branch information
msathieu authored May 23, 2024
2 parents f799eb3 + ca8831d commit 51ea487
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion frontend/public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,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 @@ -244,7 +244,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

0 comments on commit 51ea487

Please sign in to comment.