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

Commit

Permalink
added doc reference in settings pane
Browse files Browse the repository at this point in the history
  • Loading branch information
matt01y committed May 23, 2024
1 parent 69655f9 commit ca8831d
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 @@ -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

0 comments on commit ca8831d

Please sign in to comment.