mirror of
https://github.com/rickbarrette/simple-aircraft-manager-rails.git
synced 2026-11-17 23:50:36 -05:00
Squawks: multiple attachments, in-app photo viewer, downloads
Existing single attachments migrate to the new list. Photos open in a full-screen viewer (swipe/arrow keys); every file has a download link. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
21ef577653
commit
ef542ee2a5
12 files changed
+267
-13
No files matched your search
@@ -9,7 +9,7 @@ class AircraftController < ApplicationController
|
||||
|
||||
def show
|
||||
@airworthiness = @aircraft.airworthiness
|
||||
@active_squawks = @aircraft.squawks.active.by_priority.includes(:component, :reported_by)
|
||||
@active_squawks = @aircraft.squawks.active.by_priority.includes(:component, :reported_by).with_attached_attachments
|
||||
@recent_events = @aircraft.events.includes(:user).limit(8)
|
||||
@notes = @aircraft.notes.recent_first.includes(:user).limit(5)
|
||||
@oil = ConsumptionStats.new(@aircraft, "oil")
|
||||
|
||||
Reference in new issue
Block a user