Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add link to online docs in sidebar footer toggle menu #171

Merged
merged 3 commits into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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/messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -491,5 +491,6 @@
"libraryAlreadyImportedError": "This library has already been imported !",
"invalidLibraryFileError": "Invalid library file !",
"taintedFormMessage": "Do you want to leave this page? Changes you made may not be saved.",
"riskScenariosStatus": "Risk scenarios status"
"riskScenariosStatus": "Risk scenarios status",
"onlineDocs": "Online documentation"
}
3 changes: 2 additions & 1 deletion frontend/messages/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -491,5 +491,6 @@
"libraryAlreadyImportedError": "Cette libairie a été déjà été importée !",
"invalidLibraryFileError": "Fichier de librairie invalide !",
"taintedFormMessage": "Voulez-vous vraiment quitter cette page ? Toutes les données non enregistrées seront perdues.",
"riskScenariosStatus": "Statut des scénarios de risque"
"riskScenariosStatus": "Statut des scénarios de risque",
"onlineDocs": "Documentation en ligne"
}
11 changes: 10 additions & 1 deletion frontend/src/lib/components/SideBar/SideBarFooter.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@
<div class="flex flex-row items-center justify-between">
<div class="flex flex-col w-3/4">
{#if $page.data.user}
<span class="text-gray-900 text-sm whitespace-nowrap overflow-hidden truncate w-full" data-testid="sidebar-user-name-display">
<span
class="text-gray-900 text-sm whitespace-nowrap overflow-hidden truncate w-full"
data-testid="sidebar-user-name-display"
>
{$page.data.user.first_name}
{$page.data.user.last_name}
</span>
Expand Down Expand Up @@ -90,6 +93,12 @@
class="cursor-pointer flex items-center gap-2 w-full px-4 py-2.5 text-left text-sm hover:bg-gray-100 disabled:text-gray-500 text-gray-800"
data-testid="about-button"><i class="fa-solid fa-circle-info mr-2" />{m.aboutCiso()}</button
>
<a
href="https://intuitem.gitbook.io/ciso-assistant"
target="_blank"
class="unstyled cursor-pointer flex items-center gap-2 w-full px-4 py-2.5 text-left text-sm hover:bg-gray-100 disabled:text-gray-500 text-gray-800"
data-testid="profile-button"><i class="fa-solid fa-book mr-2" />{m.onlineDocs()}</a
>
<form action="/logout" method="POST">
<button class="w-full" type="submit" data-testid="logout-button">
<span
Expand Down
Loading