<%= t(".the_aircraft_s_tach_is_html", tach_time: (hours(@aircraft.tach_time)), tach_in: (hours(last.tach_in))) %>
<% end %><%= t(".rows_with_errors_are_skipped") %>
<% end %> <% end %> <% else %><%= t(".nothing_to_import_html", link: (link_to t(".upload_a_different_file"), new_aircraft_flight_import_path(@aircraft), class: "link")) %>
<% end %>| <%= t(".row") %> | <%= t(".date") %> | <%= t(".route") %> | <%= t(".tach") %> | <%= t(".issue") %> |
|---|---|---|---|---|
| <%= r.line %> | <%= r.date || "—" %> | <%= [r.from, r.to].compact.join(" → ") %> | <%= r.tach_in %> | <%= tag.span(r.status == :error ? t(".skipped") : t(".warning"), class: r.status == :error ? "badge-red" : "badge-orange") %> <%= r.messages.join("; ") %> |
| <%= t(".row") %> | <%= t(".date") %> | <%= t(".from") %> | <%= t(".to") %> | <%= t(".tach") %> | <%= t(".tach_hrs") %> | <%= t(".hobbs") %> | <%= t(".hobbs_hrs") %> | <%= t(".oil") %> | <%= t(".fuel") %> | |
|---|---|---|---|---|---|---|---|---|---|---|
| <%= 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 %> | <%= { ok: "", warning: tag.span("warning", class: "badge-orange"), error: tag.span("skipped", class: "badge-red"), duplicate: tag.span("duplicate", class: "badge-gray") }[r.status] %> |