Files
simple-aircraft-manager-rails/app/views/help/show.html.erb
T
rickyandClaude Opus 5.5 fe3fba1736 User guide in docs/guide, shown in the app under Help
- 16 Markdown pages covering every area for pilots, owners, mechanics
  and admins, readable on GitHub
- /help renders them with a page list; links between pages work in both
  places; only listed pages can be opened
- The electronic records instructions (AC 120-78B user instructions) are
  now the guide's records page, also used as the procedures appendix
- Help link in the main menu

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 13:40:09 -05:00

15 lines
1.0 KiB
ERB

<% content_for :title, "Help: #{@page.title}" %>
<div class="grid gap-5 lg:grid-cols-[14rem_1fr]">
<nav aria-label="Help pages" class="lg:order-none">
<details class="card lg:hidden">
<summary class="card-header cursor-pointer"><span class="card-title">Help: <%= @page.title %></span></summary>
<ul class="p-2 text-sm"><% @pages.each do |p| %><li><%= link_to p.title, help_page_url_for(p.slug), class: [ "block rounded px-3 py-2 hover:bg-slate-100", ("bg-slate-100 font-semibold text-sky-700" if p == @page) ] %></li><% end %></ul>
</details>
<ul class="sticky top-4 hidden space-y-0.5 text-sm lg:block">
<% @pages.each do |p| %><li><%= link_to p.title, help_page_url_for(p.slug), class: [ "block rounded px-3 py-1.5 hover:bg-slate-100", ("bg-slate-100 font-semibold text-sky-700" if p == @page) ],
aria: { current: (p == @page ? "page" : nil) } %></li><% end %>
</ul>
</nav>
<article class="card card-body min-w-0 max-w-3xl"><%= guide_html(@page) %></article>
</div>