parent
a0a2504684
commit
c55148f694
4 changed files with 9 additions and 5 deletions
|
@ -72,13 +72,13 @@ module ApplicationHelper
|
|||
def root_path_info_for_profile(nav_bar_profile)
|
||||
case nav_bar_profile
|
||||
when :administrateur
|
||||
[admin_procedures_path, "Aller au panneau d’administration"]
|
||||
[admin_procedures_path, t("admin", scope: "layouts.root_path_link_title")]
|
||||
when :instructeur
|
||||
[instructeur_procedures_path, 'Aller à la liste des démarches']
|
||||
[instructeur_procedures_path, t("instructeur", scope: "layouts.root_path_link_title")]
|
||||
when :user
|
||||
[dossiers_path, 'Aller à la liste des dossiers']
|
||||
[dossiers_path, t("user", scope: "layouts.root_path_link_title")]
|
||||
else
|
||||
[root_path, "Aller à la page d’accueil"]
|
||||
[root_path, t("default", scope: "layouts.root_path_link_title")]
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
.fr-header__service
|
||||
- root_profile_link, root_profile_libelle = root_path_info_for_profile(nav_bar_profile)
|
||||
|
||||
= link_to root_profile_link, :title => root_profile_libelle do
|
||||
= link_to root_profile_link, title: "#{root_profile_libelle} — #{APPLICATION_NAME}" do
|
||||
%p.fr-header__service-title= APPLICATION_NAME
|
||||
|
||||
.fr-header__tools
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue