Search across the logbook, squawks, notes, ADs, documents, components, flights and major records (top bar)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
rickyandClaude Opus 5.5 committed 2026-11-11 21:05:27 -05:00
1 parent 8c8e3b7374
commit 2953b9a18d
7 files changed
+189

No files matched your search

+6
View File
@@ -36,6 +36,7 @@
<div class="absolute right-0 z-30 mt-2 w-56 rounded-md bg-surface py-1 text-slate-700 shadow-lg ring-1 ring-slate-200">
<p class="truncate px-4 pt-2 pb-1 text-xs text-slate-500"><%= current_user.email_address %></p>
<%= link_to "Profile", edit_profile_path, class: "block px-4 py-2.5 hover:bg-slate-100" %>
<%= link_to "Search", search_path, class: "block px-4 py-2.5 hover:bg-slate-100" %>
<%= link_to "Help", help_path, class: "block px-4 py-2.5 hover:bg-slate-100" %>
<% if current_user.admin? %>
<p class="border-t border-slate-100 px-4 pt-2 pb-1 text-xs font-semibold text-slate-500">Admin</p>
@@ -48,6 +49,11 @@
</details>
</nav>
<nav class="hidden items-center gap-4 text-sm sm:flex" aria-label="Main">
<%= form_with url: search_path, method: :get, class: "hidden md:block", html: { role: "search" } do %>
<%= search_field_tag :q, params[:q], placeholder: "Search…", "aria-label": "Search the records",
class: "w-40 rounded bg-white/10 px-2 py-1 text-sm text-white placeholder:text-white/60 focus:w-56 focus:bg-white/20 focus:outline-none transition-all lg:w-48" %>
<% end %>
<%= link_to "Search", search_path, class: "hover:text-sky-300 md:hidden" %>
<%= link_to "Fleet", root_path, class: "hover:text-sky-300" %>
<% if current_user.admin? %>
<details class="relative" data-controller="dropdown" data-action="click@window->dropdown#closeOutside keydown.esc@window->dropdown#close">