diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-30 14:04:57 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-30 14:04:57 +0200 |
| commit | 6b0b0ebbe76a5cf4eef8de18c9c5ae9a5af39b83 (patch) | |
| tree | 0673edd623665638fadad67e442ab0065e169818 /app/views | |
| parent | ad410b963369ec6b55526401c3873e6076b18b5f (diff) | |
Use icon sets on the public page and add a public-site shortcut in admin realm
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/layouts/_nav_controls.html.erb | 5 | ||||
| -rw-r--r-- | app/views/layouts/application.html.erb | 4 |
2 files changed, 7 insertions, 2 deletions
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 @@ | |||
| 1 | |||
| 1 | <% if current_user %> | 2 | <% if current_user %> |
| 2 | <%= link_to icon("home", library: "tabler", "aria-hidden": true), admin_path, "aria-label": t(".dashboard"), title: t(".dashboard") %> | 3 | <%= link_to icon("home", library: "tabler", "aria-hidden": true), admin_path, "aria-label": t(".dashboard"), title: t(".dashboard") %> |
| 3 | <a href="#" onclick="admin_search.display_toggle(); return false;" aria-label="<%= t(".search") %>" title="<%= t(".search") %>"><%= icon("search", library: "tabler", "aria-hidden": true) %></a> | 4 | <a href="#" onclick="admin_search.display_toggle(); return false;" aria-label="<%= t(".search") %>" title="<%= t(".search") %>"><%= icon("search", library: "tabler", "aria-hidden": true) %></a> |
| 4 | <% end %> | 5 | <% end %> |
| 6 | <%= link_to root_path, class: "nav_toggle", | ||
| 7 | "aria-label" => t(".public_site"), title: t(".public_site") do %> | ||
| 8 | <%= icon("world", library: "tabler", "aria-hidden": true) %> | ||
| 9 | <% end %> | ||
| 5 | 10 | ||
| 6 | <span class="nav_group"> | 11 | <span class="nav_group"> |
| 7 | <%= link_to url_for(locale: (:en unless I18n.locale == :en)), | 12 | <%= link_to url_for(locale: (:en unless I18n.locale == :en)), |
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 6947d329..b9a53fd3 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb | |||
| @@ -49,8 +49,8 @@ | |||
| 49 | <div class="main_navigation"> | 49 | <div class="main_navigation"> |
| 50 | <h2><%= t(".admin") %></h2> | 50 | <h2><%= t(".admin") %></h2> |
| 51 | <ul> | 51 | <ul> |
| 52 | <li><%= link_to admin_path do %><span class="inactive admin_edit_link">⚙️ <%= t(".overview") %></span><% end %></li> | 52 | <li><%= link_to admin_path do %><span class="inactive admin_edit_link"><%= icon("settings", library: "tabler", "aria-hidden": true) %> <%= t(".overview") %></span><% end %></li> |
| 53 | <li><%= link_to node_path(@page.node) do %><span class="inactive admin_edit_link">✎ <%= t(".edit") %></span><% end %></li> | 53 | <li><%= link_to node_path(@page.node) do %><span class="inactive admin_edit_link"><%= icon("edit", library: "tabler", "aria-hidden": true) %> <%= t(".edit") %></span><% end %></li> |
| 54 | </ul> | 54 | </ul> |
| 55 | </div> | 55 | </div> |
| 56 | <% end %> | 56 | <% end %> |
