summaryrefslogtreecommitdiff
path: root/app/views/layouts/_nav_controls.html.erb
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-08-17 03:11:37 +0200
committererdgeist <erdgeist@erdgeist.org>2026-08-17 03:11:37 +0200
commit0e15d4461cc9b8e8baeeab2288ef8bbc2d30c3e6 (patch)
treec17d96f4767d31afe7738659a265cc461a671505 /app/views/layouts/_nav_controls.html.erb
parent8570051876b86c08d4b72288f8598f0e0d2335e1 (diff)
Toggle the search widget from a button
Diffstat (limited to 'app/views/layouts/_nav_controls.html.erb')
-rw-r--r--app/views/layouts/_nav_controls.html.erb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/layouts/_nav_controls.html.erb b/app/views/layouts/_nav_controls.html.erb
index 66524044..44010eb6 100644
--- a/app/views/layouts/_nav_controls.html.erb
+++ b/app/views/layouts/_nav_controls.html.erb
@@ -1,7 +1,9 @@
1 1
2<% if current_user %> 2<% if current_user %>
3 <%= 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") %>
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 <button type="button" id="search_toggle" class="nav_toggle" aria-label="<%= t(".search") %>" title="<%= t(".search") %>">
5 <%= icon("search", library: "tabler", "aria-hidden": true) %>
6 </button>
5<% end %> 7<% end %>
6<%= link_to root_path, class: "nav_toggle", 8<%= link_to root_path, class: "nav_toggle",
7 "aria-label" => t(".public_site"), title: t(".public_site") do %> 9 "aria-label" => t(".public_site"), title: t(".public_site") do %>