Skip to content

Commit

Permalink
Add admin link in header
Browse files Browse the repository at this point in the history
  • Loading branch information
skelz0r committed Jan 23, 2025
1 parent 2fbad35 commit b02ba50
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/views/layouts/header/_tools.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
<%= t('.links.authorization_requests_index.title') %>
</a>
</li>
<% if current_user.admin? %>
<li>
<a class="fr-link fr-icon-todo-fill" href="<%= admin_path %>">
<%= t('.links.admin.title') %>
</a>
</li>
<% end %>
<% if current_user.reporter? %>
<li>
<a class="fr-link fr-icon-draft-fill" href="<%= instruction_path %>">
Expand Down
2 changes: 2 additions & 0 deletions config/locales/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ fr:
tagline: Habilitations juridiques
tools:
links:
admin:
title: Espace admin
instruction:
title: Espace instruction
authorization_requests_index:
Expand Down

0 comments on commit b02ba50

Please sign in to comment.