% content_for :title, "#{@aircraft.tail_number} Oil & Fuel" %> <%= render "shared/aircraft_header", aircraft: @aircraft %>
Rolling <%= stats.chart_window_hours %>-hour window: total <%= stats.oil? ? "oil" : "fuel" %> added ÷ hours flown, so partial fills average out.<%= " Higher is better." if stats.oil? %>
<% else %> <%= empty_state "Not enough history yet (need more than #{stats.chart_window_hours} tach hours of records)." %> <% end %>| Date | Type | Added | Level after | Product | Tach | Notes | |
|---|---|---|---|---|---|---|---|
| <%= 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}" : "" %> | <%= r.consumable_type %> | <%= hours(r.flight_hours) %> | <%= r.notes %><%= " (excluded from average)" if r.excluded_from_averages? %> | <% if owner? %><%= link_to "Edit", edit_aircraft_consumable_record_path(@aircraft, r), class: "btn-secondary btn-sm" %><% end %> |