From b02ba50ff7ba5574aed458b2a94161b8c0ccf2dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Delmaire=20Lo=C3=AFc?= Date: Thu, 23 Jan 2025 15:45:09 +0100 Subject: [PATCH] Add admin link in header --- app/views/layouts/header/_tools.html.erb | 7 +++++++ config/locales/fr.yml | 2 ++ 2 files changed, 9 insertions(+) diff --git a/app/views/layouts/header/_tools.html.erb b/app/views/layouts/header/_tools.html.erb index 268f11ea2..f91177bb6 100644 --- a/app/views/layouts/header/_tools.html.erb +++ b/app/views/layouts/header/_tools.html.erb @@ -6,6 +6,13 @@ <%= t('.links.authorization_requests_index.title') %> + <% if current_user.admin? %> +
  • + + <%= t('.links.admin.title') %> + +
  • + <% end %> <% if current_user.reporter? %>
  • diff --git a/config/locales/fr.yml b/config/locales/fr.yml index 54f62cd3f..95cbe5b17 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -74,6 +74,8 @@ fr: tagline: Habilitations juridiques tools: links: + admin: + title: Espace admin instruction: title: Espace instruction authorization_requests_index: