diff --git a/CHANGELOG.md b/CHANGELOG.md index 2612933..08c0ce7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,7 @@ The first numbered release. Highlights of what Simple Aircraft Manager does as o ### Flying - Flight log grouped by day with the route and totals; long logs load as you scroll. +- Log flights with no signal: the phone keeps them and sends them when it's back online. - Engine monitor data charts, GPS tracks, AirTrail sync, spreadsheet import, and oil and fuel trends. ### Accounts and security @@ -33,6 +34,11 @@ The first numbered release. Highlights of what Simple Aircraft Manager does as o - Single sign-on (OpenID Connect), sign-in links, account lockout, breached-password check and optional authenticator codes. - Command-line account recovery and maintenance commands (health report, records check, restore). -### Help +### Finding things -- A user guide for every area, in the app under Help. +- One search box for the logbook, squawks, notes, ADs, documents (including the text of scanned pages), components, flights and major records. + +### Help and polish + +- A user guide for every area, in the app under Help; release notes (this page) under What's new. +- Dates read the same way everywhere ("Nov 8, 2026"); keyboard users get a skip link and visible focus; images have descriptions. diff --git a/app/assets/tailwind/application.css b/app/assets/tailwind/application.css index 434b386..be43df4 100644 --- a/app/assets/tailwind/application.css +++ b/app/assets/tailwind/application.css @@ -131,6 +131,13 @@ .markdown th, .markdown td { border: 1px solid var(--color-slate-200); padding: 0.25rem 0.5rem; text-align: left; } .markdown th { background: var(--color-slate-50); font-weight: 600; } .markdown.guide { line-height: 1.6; } + /* Keyboard users: a visible focus ring everywhere, and a way past the menus. */ + :where(a, button, summary, select, [tabindex]:not([tabindex="-1"]), input[type=checkbox], input[type=radio]):focus-visible { + outline: 2px solid var(--color-accent); outline-offset: 2px; border-radius: 0.25rem; + } + .skip-link { position: absolute; left: 0.5rem; top: -3rem; z-index: 50; background: var(--color-surface); color: var(--color-accent); + padding: 0.5rem 0.75rem; border-radius: 0.375rem; box-shadow: 0 1px 3px rgb(0 0 0 / 0.2); } + .skip-link:focus { top: 0.5rem; } .markdown.guide h1 { font-size: 1.5rem; font-weight: 700; } .markdown.guide h2 { font-size: 1.15rem; margin-top: 1.25em; } .markdown.guide h3 { margin-top: 1em; } diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index d50f4b6..e661e36 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -4,8 +4,14 @@ module ApplicationHelper number_with_precision(value, precision: 1, delimiter: ",") end + # How dates and times read across the app: "Nov 8, 2026", "Nov 8, 2026 14:05". + # (Signatures and the record history keep exact UTC timestamps, 2026-11-08 14:05 UTC.) def fmt_date(value) - value ? l(value.to_date, format: :long) : "—" + value ? value.to_date.strftime("%b %-d, %Y") : "—" + end + + def fmt_time(value) + value ? value.in_time_zone.strftime("%b %-d, %Y %H:%M") : "—" end AIRWORTHINESS_COLORS = { "RED" => "red", "LIMITED" => "blue", "ORANGE" => "orange", "GREEN" => "green", "INFO" => "gray" }.freeze diff --git a/app/mailers/application_mailer.rb b/app/mailers/application_mailer.rb index d3efeb5..8e21966 100644 --- a/app/mailers/application_mailer.rb +++ b/app/mailers/application_mailer.rb @@ -1,4 +1,5 @@ class ApplicationMailer < ActionMailer::Base + helper ApplicationHelper # fmt_date etc. in emails default from: ENV.fetch("MAIL_FROM", "aircraft-manager@localhost") layout "mailer" end diff --git a/app/views/ad_imports/show.html.erb b/app/views/ad_imports/show.html.erb index a846a99..5bab9dd 100644 --- a/app/views/ad_imports/show.html.erb +++ b/app/views/ad_imports/show.html.erb @@ -34,7 +34,7 @@ <%= r.subject %> <% if r.summary %>
Summary<%= r.summary %>
<% end %> - <%= r.effective_date %> + <%= fmt_date(r.effective_date) %> <% r.notes.each do |n| %>
">• <%= n %>
<% end %> diff --git a/app/views/admin/about/show.html.erb b/app/views/admin/about/show.html.erb index d895ce4..9ca80e2 100644 --- a/app/views/admin/about/show.html.erb +++ b/app/views/admin/about/show.html.erb @@ -14,8 +14,8 @@

<%= link_to "What's new", help_page_path("changelog"), class: "link" %><% if info.repository_url %><%= link_to "Source code", info.repository_url, class: "link", target: "_blank", rel: "noopener" %><% end %>

-
Built
<%= info.built_at ? l(info.built_at.in_time_zone, format: :short) : "—" %>
-
Started
<%= l(info.booted_at.in_time_zone, format: :short) %>
+
Built
<%= info.built_at ? fmt_time(info.built_at.in_time_zone) : "—" %>
+
Started
<%= fmt_time(info.booted_at.in_time_zone) %>
Uptime
<%= distance_of_time_in_words(info.booted_at, Time.current) %>
@@ -89,13 +89,13 @@ <% check = IntegrityCheck.latest %> <% backup = BackupRun.latest %> <%= render "pairs", pairs: [ - [ "Last check", check ? "#{l(check.created_at, format: :short)} · #{check.ok ? 'no problems' : pluralize(check.problems.size, 'problem')}" : "not run yet" ], + [ "Last check", check ? "#{fmt_time(check.created_at)} · #{check.ok ? 'no problems' : pluralize(check.problems.size, 'problem')}" : "not run yet" ], [ "Checked", check ? "#{number_with_delimiter(check.versions_checked)} history entries, #{number_with_delimiter(check.signatures_checked)} signatures" : nil ], - [ "Last backup", backup ? "#{l(backup.created_at, format: :short)} · #{backup.ok ? number_to_human_size(backup.bytes) : 'FAILED'}" : "not run yet" ], + [ "Last backup", backup ? "#{fmt_time(backup.created_at)} · #{backup.ok ? number_to_human_size(backup.bytes) : 'FAILED'}" : "not run yet" ], [ "Backup check", backup&.message ], [ "Backups kept", "#{Setting.integer('backups_kept')} (in storage/backups)" ], - [ "Off-site backup", OffsiteConnection.connected? ? ((o = OffsiteRun.latest_backup) ? tag.span("#{o.ok ? 'OK' : 'FAILED'} #{o.created_at.to_date}", class: (o.ok && o.recent? ? nil : "badge-orange")) + " · Google Drive (#{OffsiteConnection.current.account_email})" : "Google Drive connected, none yet") : link_to("not set up", admin_offsite_backup_path, class: "badge-orange") ], - [ "Procedures", (r = ProceduresRevision.current) ? "Revision #{r.number}, adopted #{r.adopted_at.to_date}" : tag.span("not adopted", class: "badge-orange") ], + [ "Off-site backup", OffsiteConnection.connected? ? ((o = OffsiteRun.latest_backup) ? tag.span("#{o.ok ? 'OK' : 'FAILED'} #{fmt_date(o.created_at.to_date)}", class: (o.ok && o.recent? ? nil : "badge-orange")) + " · Google Drive (#{OffsiteConnection.current.account_email})" : "Google Drive connected, none yet") : link_to("not set up", admin_offsite_backup_path, class: "badge-orange") ], + [ "Procedures", (r = ProceduresRevision.current) ? "Revision #{r.number}, adopted #{fmt_date(r.adopted_at.to_date)}" : tag.span("not adopted", class: "badge-orange") ], [ "Last audit", AuditRun.latest ? "#{AuditRun.latest.performed_at.to_date} · #{AuditRun.latest.passed ? 'passed' : 'items not passed'}" : "none yet" ], [ "Next audit due", AuditRun.due_soon? ? tag.span(AuditRun.next_due.to_s, class: "badge-orange") : AuditRun.next_due.to_s ] ] %> @@ -108,7 +108,7 @@

Software versions

<% revisions = AppRevision.latest_first.limit(20) %> <% if revisions.any? %> - <%= render "pairs", pairs: revisions.map { |r| [ [ r.version, "build #{r.revision}" ].compact.join(" · "), "#{l(r.first_seen_at, format: :short)} – #{l(r.last_seen_at, format: :short)}" ] } %> + <%= render "pairs", pairs: revisions.map { |r| [ [ r.version, "build #{r.revision}" ].compact.join(" · "), "#{fmt_time(r.first_seen_at)} – #{fmt_time(r.last_seen_at)}" ] } %> <% else %> <%= empty_state "No versions recorded yet." %> <% end %> diff --git a/app/views/admin/airports/index.html.erb b/app/views/admin/airports/index.html.erb index 162983e..4909527 100644 --- a/app/views/admin/airports/index.html.erb +++ b/app/views/admin/airports/index.html.erb @@ -31,7 +31,7 @@ <% @updates.each do |u| %> - <%= l(u.created_at, format: :short) %> + <%= fmt_time(u.created_at) %> <%= u.requested_by&.display_name || "Startup" %> <%= tag.span u.status.capitalize, class: { "done" => "badge-green", "failed" => "badge-red" }.fetch(u.status, "badge-blue") %> <%= u.done? ? u.summary : u.error %> diff --git a/app/views/admin/audits/new.html.erb b/app/views/admin/audits/new.html.erb index 1518026..3479a18 100644 --- a/app/views/admin/audits/new.html.erb +++ b/app/views/admin/audits/new.html.erb @@ -21,13 +21,13 @@ <% if key == "restore_test" && OffsiteConnection.connected? %>

- <% if (rt = @audit.restore_test) %>Last automatic restore test (<%= rt.created_at.to_date %>): <%= rt.ok ? "OK" : "Failed" %> <%= rt.message %><% else %>No automatic restore test yet.<% end %> + <% if (rt = @audit.restore_test) %>Last automatic restore test (<%= fmt_date(rt.created_at.to_date) %>): <%= rt.ok ? "OK" : "Failed" %> <%= rt.message %><% else %>No automatic restore test yet.<% end %> <%= link_to "Run one", admin_offsite_backup_path, class: "link", target: "_blank" %> (Admin → Off-site Backup → Test restore), then also open a copy downloaded from Google Drive yourself.

<% end %> <% if key == "sample" %> <% elsif key == "users" %> diff --git a/app/views/admin/audits/show.html.erb b/app/views/admin/audits/show.html.erb index b218242..44deb6d 100644 --- a/app/views/admin/audits/show.html.erb +++ b/app/views/admin/audits/show.html.erb @@ -1,11 +1,11 @@ <% content_for :title, "Records audit" %> -

Records audit, <%= @audit.performed_at.to_date %>

+

Records audit, <%= fmt_date(@audit.performed_at.to_date) %>

By <%= @audit.performed_by&.display_name %> · <%= @audit.passed ? "Passed" : "Items not passed" %>

diff --git a/app/views/admin/offsite_backups/show.html.erb b/app/views/admin/offsite_backups/show.html.erb index 39ee6a3..bcb5b36 100644 --- a/app/views/admin/offsite_backups/show.html.erb +++ b/app/views/admin/offsite_backups/show.html.erb @@ -6,7 +6,7 @@

Google Drive

<% if @connection.connected? %> -

Connected <%= @connection.account_email %>, by <%= @connection.connected_by&.display_name %> on <%= @connection.connected_at&.to_date %>. +

Connected <%= @connection.account_email %>, by <%= @connection.connected_by&.display_name %> on <%= fmt_date(@connection.connected_at&.to_date) %>. Folder: <%= OffsiteConnection::ROOT_FOLDER %>.

Uploaded files copied: <%= @files_copied %> of <%= @files_total %>.

@@ -52,7 +52,7 @@
    <% @runs.each do |r| %>
  • <%= r.ok ? "OK" : "Failed" %> - <%= r.kind == "restore_test" ? "Restore test" : "Backup" %> · <%= l(r.created_at.in_time_zone, format: :short) %><%= r.message %>
  • + <%= r.kind == "restore_test" ? "Restore test" : "Backup" %> · <%= fmt_time(r.created_at.in_time_zone) %><%= r.message %> <% end %>
<% else %><%= empty_state "None yet." %><% end %> diff --git a/app/views/admin/procedures/_document.html.erb b/app/views/admin/procedures/_document.html.erb index afc5754..c400230 100644 --- a/app/views/admin/procedures/_document.html.erb +++ b/app/views/admin/procedures/_document.html.erb @@ -110,7 +110,7 @@ - <% revisions.each do |r| %><% end %> + <% revisions.each do |r| %><% end %>
RevisionAdoptedBySummary
<%= r.number %><%= r.adopted_at.to_date %><%= r.adopted_by&.display_name %><%= r.summary %>
<%= r.number %><%= fmt_date(r.adopted_at.to_date) %><%= r.adopted_by&.display_name %><%= r.summary %>
<%= number %><%= adopted_at&.to_date || "—" %><%= adopted_by&.display_name %><%= summary.presence || "This revision" %>
diff --git a/app/views/admin/procedures/show.html.erb b/app/views/admin/procedures/show.html.erb index e8d599c..d118b8f 100644 --- a/app/views/admin/procedures/show.html.erb +++ b/app/views/admin/procedures/show.html.erb @@ -38,7 +38,7 @@

Current revision

<% current = @revisions.first %> <% if current %> -

Revision <%= current.number %>, adopted <%= current.adopted_at.to_date %> by <%= current.adopted_by&.display_name %>. <%= link_to "View / print", revision_admin_procedures_path(current), class: "link", target: "_blank" %>

+

Revision <%= current.number %>, adopted <%= fmt_date(current.adopted_at.to_date) %> by <%= current.adopted_by&.display_name %>. <%= link_to "View / print", revision_admin_procedures_path(current), class: "link", target: "_blank" %>

<% else %>

No revision adopted yet.

<% end %> @@ -54,7 +54,7 @@

Earlier revisions

<% if @revisions.size > 1 %>
    - <% @revisions.drop(1).each do |r| %>
  • Revision <%= r.number %> · <%= r.adopted_at.to_date %> · <%= r.summary %><%= link_to "View", revision_admin_procedures_path(r), class: "link", target: "_blank" %>
  • <% end %> + <% @revisions.drop(1).each do |r| %>
  • Revision <%= r.number %> · <%= fmt_date(r.adopted_at.to_date) %> · <%= r.summary %><%= link_to "View", revision_admin_procedures_path(r), class: "link", target: "_blank" %>
  • <% end %>
<% else %><%= empty_state "None." %><% end %>
diff --git a/app/views/aircraft/index.html.erb b/app/views/aircraft/index.html.erb index ab417ec..553ac34 100644 --- a/app/views/aircraft/index.html.erb +++ b/app/views/aircraft/index.html.erb @@ -19,9 +19,9 @@ <%= link_to aircraft_path(aircraft), class: "card block overflow-hidden transition hover:shadow-md" do %>
<% if aircraft.picture.attached? %> - <%= image_tag aircraft.picture, class: "h-full w-full object-cover" %> + <%= image_tag aircraft.picture, class: "h-full w-full object-cover", alt: "Photo of #{aircraft.tail_number}" %> <% else %> - ✈ + <% end %>
diff --git a/app/views/aircraft_roles/index.html.erb b/app/views/aircraft_roles/index.html.erb index 731faa0..20f738c 100644 --- a/app/views/aircraft_roles/index.html.erb +++ b/app/views/aircraft_roles/index.html.erb @@ -41,7 +41,7 @@ <%= delete_button "Revoke", aircraft_share_token_path(@aircraft, t), confirm: "Revoke this link? Anyone using it will lose access." %>
-
Created <%= t.created_at.to_date %><%= " by #{t.created_by.display_name}" if t.created_by %> · <%= t.expires_at ? "expires #{l t.expires_at, format: :short}" : "never expires" %>
+
Created <%= fmt_date(t.created_at.to_date) %><%= " by #{t.created_by.display_name}" if t.created_by %> · <%= t.expires_at ? "expires #{l t.expires_at, format: :short}" : "never expires" %>
<% end %> diff --git a/app/views/airworthiness_directives/index.html.erb b/app/views/airworthiness_directives/index.html.erb index 9bb403c..c25fa7c 100644 --- a/app/views/airworthiness_directives/index.html.erb +++ b/app/views/airworthiness_directives/index.html.erb @@ -24,10 +24,10 @@ <% @rows.each do |row| ad = row.ad %> <%= ad.bulletin_label %><%= ad_link(ad) %> - <% if ad.document %><%= link_to "📄", aircraft_document_path(@aircraft, ad.document), title: ad.document.name %><% end %> - <% unless ad.mandatory? %>
not mandatory
<% end %> + <% if ad.document %><%= link_to "📄", aircraft_document_path(@aircraft, ad.document), title: ad.document.name, "aria-label": "Document: #{ad.document.name}" %><% end %> + <% unless ad.mandatory? %>
not mandatory
<% end %> <%= ad.short_description %> - <% if ad.effective_date || ad.product_type.present? %>
<%= [(ad.effective_date && "Effective #{ad.effective_date}"), ad.product_type.presence].compact.join(" · ") %>
<% end %> + <% if ad.effective_date || ad.product_type.present? %>
<%= [(ad.effective_date && "Effective #{fmt_date(ad.effective_date)}"), ad.product_type.presence].compact.join(" · ") %>
<% end %> <% if ad.superseded_by.present? %>
Superseded by <%= ad.superseded_by %>
<% end %> <% if ad.conditional? && ad.trigger_condition.present? %>
Trigger: <%= ad.trigger_condition %>
<% end %> <%= ad.recurring? ? [ad.recurring_hours.to_f > 0 && "#{hours(ad.recurring_hours)} h", ad.recurring_months > 0 && "#{ad.recurring_months} mo"].select(&:itself).join(" / ") : "One-time" %> @@ -63,7 +63,7 @@
<% if last_drs %> -

Last import <%= last_drs.created_at.to_date %> by <%= last_drs.user&.display_name || "—" %>: <%= last_drs.ad_count %> ADs<%= ", covering #{Array(last_drs.models_covered).to_sentence}" if Array(last_drs.models_covered).any? %>.

+

Last import <%= fmt_date(last_drs.created_at.to_date) %> by <%= last_drs.user&.display_name || "—" %>: <%= last_drs.ad_count %> ADs<%= ", covering #{Array(last_drs.models_covered).to_sentence}" if Array(last_drs.models_covered).any? %>.

<% if last_drs.created_at < DrsImport::RENEW_AFTER.ago %>

Over a year old: import again to pick up revised ADs and anything the weekly search missed.

<% end %> <% else %>

No DRS import yet. Export the ADs for each model from drs.faa.gov and import them here.

@@ -86,7 +86,7 @@
  • <%= alert.ad_number ? "AD #{alert.ad_number}" : alert.fr_document_number %> · <%= alert.title.to_s.delete_prefix("Airworthiness Directives; ") %>
    -
    <%= [ (alert.effective_on && "Effective #{alert.effective_on}"), "published #{alert.publication_date}", "matched “#{alert.matched_term}”" ].compact.join(" · ") %>
    +
    <%= [ (alert.effective_on && "Effective #{fmt_date(alert.effective_on)}"), "published #{fmt_date(alert.publication_date)}", "matched “#{alert.matched_term}”" ].compact.join(" · ") %>

    <%= alert.abstract.to_s.truncate(400) %>

    <%= link_to "Read it in the Federal Register", alert.html_url, class: "link text-xs", target: "_blank", rel: "noopener" %>
    @@ -122,11 +122,11 @@ <% @history.each do |c| %> - <%= c.date_complied %> + <%= fmt_date(c.date_complied) %> <% ad = c.airworthiness_directive %> <%= ad_link(ad) %> - <% if ad.document %><%= link_to "📄", aircraft_document_path(@aircraft, ad.document), title: ad.document.name %><% end %> + <% if ad.document %><%= link_to "📄", aircraft_document_path(@aircraft, ad.document), title: ad.document.name, "aria-label": "Document: #{ad.document.name}" %><% end %>
    <%= ad.short_description %><%= " · #{c.component}" if c.component %>
    <%= hours(c.aircraft_hours_at_compliance) %> @@ -136,8 +136,8 @@ <%= c.compliance_notes %> <% if c.logbook_entry || c.inspection_record %>
    - <% if c.logbook_entry %><%= link_to "Logbook #{c.logbook_entry.date}", aircraft_logbook_entry_path(@aircraft, c.logbook_entry), class: "link" %><% end %> - <% if c.inspection_record %><%= link_to "#{c.inspection_record.inspection_type.name} #{c.inspection_record.date}", aircraft_inspections_path(@aircraft), class: "link" %><% end %> + <% if c.logbook_entry %><%= link_to "Logbook #{fmt_date(c.logbook_entry.date)}", aircraft_logbook_entry_path(@aircraft, c.logbook_entry), class: "link" %><% end %> + <% if c.inspection_record %><%= link_to "#{c.inspection_record.inspection_type.name} #{fmt_date(c.inspection_record.date)}", aircraft_inspections_path(@aircraft), class: "link" %><% end %>
    <% end %> diff --git a/app/views/components/index.html.erb b/app/views/components/index.html.erb index 72329df..196b0a8 100644 --- a/app/views/components/index.html.erb +++ b/app/views/components/index.html.erb @@ -35,7 +35,7 @@ Replace: <%= [c.replacement_hours && "#{c.replacement_hours} h", c.replacement_days && "#{c.replacement_days} d"].compact.join(" / ") %>
    <% end %> <% if c.tbo_critical? && c.tbo_hours %>TBO: <%= c.tbo_hours %> h<%= " (on condition)" if c.on_condition? %>
    <% end %> - <% if c.expires_on %>Expires: <%= c.expires_on %><% end %> + <% if c.expires_on %>Expires: <%= fmt_date(c.expires_on) %><% end %> <%= life_badge(c.life_status) %> diff --git a/app/views/consumable_records/_records.html.erb b/app/views/consumable_records/_records.html.erb index 11221f3..bd74a68 100644 --- a/app/views/consumable_records/_records.html.erb +++ b/app/views/consumable_records/_records.html.erb @@ -13,7 +13,7 @@ <% records.each do |r| %> - <%= r.date %> + <%= fmt_date(r.date) %> <%= tag.span ConsumableRecord::TYPES[r.record_type], class: r.record_type == "oil" ? "badge-orange" : "badge-blue" %> <%= r.quantity_added %> <%= r.unit %> <%= r.level_after ? "#{r.level_after} #{r.unit}" : "" %> diff --git a/app/views/documents/_doc_row.html.erb b/app/views/documents/_doc_row.html.erb index 8a4e616..36ec497 100644 --- a/app/views/documents/_doc_row.html.erb +++ b/app/views/documents/_doc_row.html.erb @@ -3,7 +3,7 @@ <%= link_to doc.name, aircraft_document_path(aircraft, doc), class: "link font-medium" %> <%= doc.type_label %> · <%= pluralize(doc.pages.size, "file") %> <% if doc.legacy_record? %>Legacy record<% end %> - <% if doc.expires_on %><%= doc.expired? ? "Expired" : "Expires" %> <%= doc.expires_on %><% end %> + <% if doc.expires_on %><%= doc.expired? ? "Expired" : "Expires" %> <%= fmt_date(doc.expires_on) %><% end %> <% if doc.description.present? %>
    <%= doc.description.truncate(120) %>
    <% end %>
  • diff --git a/app/views/documents/_viewer.html.erb b/app/views/documents/_viewer.html.erb index 25f7ad1..400f153 100644 --- a/app/views/documents/_viewer.html.erb +++ b/app/views/documents/_viewer.html.erb @@ -11,7 +11,7 @@
    <% if current.image? %> - <%= image_tag rails_blob_path(current, disposition: :inline), class: "max-h-[80vh] max-w-full" %> + <%= image_tag rails_blob_path(current, disposition: :inline), alt: current.filename.to_s, class: "max-h-[80vh] max-w-full" %> <% elsif current.content_type == "application/pdf" %> <% else %> diff --git a/app/views/flight_imports/show.html.erb b/app/views/flight_imports/show.html.erb index 956f11d..8e0d751 100644 --- a/app/views/flight_imports/show.html.erb +++ b/app/views/flight_imports/show.html.erb @@ -71,7 +71,7 @@ <% rows.each do |r| %> - <%= r.line %><%= r.date %><%= r.from %><%= r.to %> + <%= r.line %><%= fmt_date(r.date) %><%= r.from %><%= r.to %> <%= r.tach_in %><%= hours(r.tach_time) if r.tach_time %> <%= r.hobbs_in %><%= hours(r.hobbs_time) if r.hobbs_time %> <%= r.oil %><%= r.fuel %> diff --git a/app/views/flight_logs/_days.html.erb b/app/views/flight_logs/_days.html.erb index c7eb5bd..7380069 100644 --- a/app/views/flight_logs/_days.html.erb +++ b/app/views/flight_logs/_days.html.erb @@ -10,8 +10,8 @@ <%= day.date.strftime("%a %b %-d, %Y") %><%= pluralize(day.flights.size, "flight") %> <%= day.route.presence || blank %> - <% if day.track_log? %>📍<% end %> - <% if day.engine_data? %>📈<% end %> + <% if day.track_log? %>📍<% end %> + <% if day.engine_data? %>📈<% end %> <% if day.pilots.any? %><%= day.pilots.to_sentence %><% end %> Tach <%= day.tach_time ? hours(day.tach_time) : blank %> @@ -29,8 +29,8 @@ <%= link_to "Leg #{i + 1}", aircraft_flight_log_path(@aircraft, fl), class: "link" %> <%= fl.route_summary.presence || blank %> - <% if fl.track_log.attached? %>📍<% end %> - <% if fl.engine_data.attached? %>📈<% end %> + <% if fl.track_log.attached? %>📍<% end %> + <% if fl.engine_data.attached? %>📈<% end %> <%= fl.tach_time ? hours(fl.tach_time) : blank %> <%= fl.hobbs_time ? hours(fl.hobbs_time) : blank %> diff --git a/app/views/flight_logs/_engine_data.html.erb b/app/views/flight_logs/_engine_data.html.erb index f643717..d376005 100644 --- a/app/views/flight_logs/_engine_data.html.erb +++ b/app/views/flight_logs/_engine_data.html.erb @@ -96,7 +96,7 @@
    - +
    Series (visible range)MinAvgMax
    Series (visible range)MinAvgMax
    diff --git a/app/views/inspections/index.html.erb b/app/views/inspections/index.html.erb index e8505ab..e0364dd 100644 --- a/app/views/inspections/index.html.erb +++ b/app/views/inspections/index.html.erb @@ -10,10 +10,10 @@ <% @rows.each do |row| %> - <%= row.type.name %><%= tag.span(" #{row.type.advisory? ? 'advisory' : row.type.limitation.to_s.downcase + ' if overdue'}", class: "text-xs text-slate-400") if row.type.advisory? || row.type.limitation %> + <%= row.type.name %><%= tag.span(" #{row.type.advisory? ? 'advisory' : row.type.limitation.to_s.downcase + ' if overdue'}", class: "text-xs text-slate-500") if row.type.advisory? || row.type.limitation %> <% if row.type.satisfies %>
    Also counts as <%= row.type.satisfies.name %>
    <% end %> <%= row.type.interval_description %> - <%= row.latest ? "#{row.latest.date} @ #{hours(row.latest.hours_at_inspection)} h" : "—" %> + <%= row.latest ? "#{fmt_date(row.latest.date)} @ #{hours(row.latest.hours_at_inspection)} h" : "—" %> <%= [row.next_due_date&.to_s, row.next_due_hours && "#{hours(row.next_due_hours)} h"].compact.join(" / ").presence || "—" %> <%= compliance_badge(row.status) %> @@ -40,7 +40,7 @@ <% @history.each do |r| %> - <%= r.date %> + <%= fmt_date(r.date) %> <%= r.inspection_type.name %><%= " (#{r.component})" if r.component %> <%= hours(r.hours_at_inspection) %> <%= r.notes %><% if r.logbook_entry %> <%= link_to "logbook", aircraft_logbook_entry_path(@aircraft, r.logbook_entry), class: "link" %><% end %> diff --git a/app/views/invited_signings/welcome.html.erb b/app/views/invited_signings/welcome.html.erb index 40e0807..402f25f 100644 --- a/app/views/invited_signings/welcome.html.erb +++ b/app/views/invited_signings/welcome.html.erb @@ -1,7 +1,7 @@ <% content_for :title, "Sign a logbook entry" %>

    Sign a logbook entry

    -

    You've been asked to sign the <%= @entry.date %> <%= LogbookEntry::LOG_TYPES[@entry.log_type].downcase %> log entry for <%= @entry.aircraft.tail_number %>. First, sign in as <%= @invitation.email %>.

    +

    You've been asked to sign the <%= fmt_date(@entry.date) %> <%= LogbookEntry::LOG_TYPES[@entry.log_type].downcase %> log entry for <%= @entry.aircraft.tail_number %>. First, sign in as <%= @invitation.email %>.

    <%= link_to "I have an account: sign in", new_session_path, class: "btn-primary w-full justify-center" %>
    diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index f0bbc50..3baaa0d 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -1,5 +1,5 @@ - + <%= render "shared/theme_script" %> @@ -21,6 +21,7 @@ +
    @@ -77,7 +78,7 @@
    -
    +
    <%= render "shared/flash" %> <%= yield %>
    diff --git a/app/views/layouts/mailer.html.erb b/app/views/layouts/mailer.html.erb index 3aac900..cd89ef1 100644 --- a/app/views/layouts/mailer.html.erb +++ b/app/views/layouts/mailer.html.erb @@ -1,5 +1,5 @@ - +