From 6b0b0ebbe76a5cf4eef8de18c9c5ae9a5af39b83 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Thu, 30 Jul 2026 14:04:57 +0200 Subject: Use icon sets on the public page and add a public-site shortcut in admin realm --- app/views/layouts/_nav_controls.html.erb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/views/layouts/_nav_controls.html.erb') diff --git a/app/views/layouts/_nav_controls.html.erb b/app/views/layouts/_nav_controls.html.erb index d6053dab..bae1082b 100644 --- a/app/views/layouts/_nav_controls.html.erb +++ b/app/views/layouts/_nav_controls.html.erb @@ -1,7 +1,12 @@ + <% if current_user %> <%= link_to icon("home", library: "tabler", "aria-hidden": true), admin_path, "aria-label": t(".dashboard"), title: t(".dashboard") %> " title="<%= t(".search") %>"><%= icon("search", library: "tabler", "aria-hidden": true) %> <% end %> +<%= link_to root_path, class: "nav_toggle", + "aria-label" => t(".public_site"), title: t(".public_site") do %> + <%= icon("world", library: "tabler", "aria-hidden": true) %> +<% end %> <%= link_to url_for(locale: (:en unless I18n.locale == :en)), -- cgit v1.3