mirror of
https://github.com/rickbarrette/simple-aircraft-manager-rails.git
synced 2026-11-17 23:50:36 -05:00
The white plane in a blue ring on the dark rounded square, tuned to read at 16 px, instead of the plane emoji (which looked different everywhere). Adds favicon.ico (16/32/48) for browsers and tools that ask for it, busts the cached SVG with ?v=2, and keeps it with the offline page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
28 lines
1.3 KiB
ERB
28 lines
1.3 KiB
ERB
<!DOCTYPE html>
|
|
<html lang="<%= I18n.locale %>" class="bg-white" data-theme="light">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title><%= [content_for(:title), t(".simple_aircraft_manager")].compact.join(" · ") %></title>
|
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
<meta name="robots" content="noindex, nofollow">
|
|
<%= csrf_meta_tags %>
|
|
<%= csp_meta_tag %>
|
|
<%# Always a full page load: a Turbo visit would keep the app's dark theme
|
|
on this white page, and leave this page's styles behind on Back. %>
|
|
<meta name="turbo-visit-control" content="reload">
|
|
<% unless @standalone %><link rel="icon" href="/favicon.ico" sizes="32x32"><link rel="icon" href="/favicon.svg?v=2" type="image/svg+xml"><% end %>
|
|
<%= stylesheet_link_tag :app, "data-turbo-track": "reload" %>
|
|
<%# No Turbo here (Back is then an ordinary page load); just the Print button. %>
|
|
<script nonce="<%= content_security_policy_nonce %>">
|
|
document.addEventListener("click", (e) => { if (e.target.closest?.("[data-print]")) window.print() })
|
|
</script>
|
|
<style>
|
|
html, body { background: #fff; }
|
|
@page { margin: 0.5in; }
|
|
</style>
|
|
</head>
|
|
<body class="bg-white text-slate-900 report">
|
|
<main class="mx-auto max-w-5xl px-4 py-6 print:max-w-none print:p-0"><%= yield %></main>
|
|
</body>
|
|
</html>
|