Skip to content

Commit

Permalink
Remplace le faux lien de l'en-tête quand on est connecté en admin
Browse files Browse the repository at this point in the history
  • Loading branch information
goulvench committed Oct 25, 2024
1 parent df8096f commit 28c6a1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/shared/_header.haml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
- dropdown.with_link title: "Statistiques", path: stats_path

- elsif current_admin_user
- c.with_tool_link title: "#{current_admin_user} (Admin)", path: "#", classes: ["fr-icon-admin-line"]
- c.with_tool_link title: "#{current_admin_user} (Admin)", path: admin_path, classes: ["fr-icon-admin-line"]
- c.with_tool_link title: "Déconnexion", path: destroy_admin_user_session_path, classes: ["fr-icon-logout-box-r-line"], html_attributes: { "data-turbo-method": "DELETE" }
- c.with_direct_link_simple title: "Administration", path: admin_path, active: active_nav_link?("Administration")
- c.with_direct_link_simple title: "Communes", path: admin_communes_path, active: active_nav_link?("Communes")
Expand Down

0 comments on commit 28c6a1a

Please sign in to comment.