<%= link_to doc.name, aircraft_document_path(aircraft, doc), class: "link font-medium" %>
<%= doc.type_label %> ยท <%= t("counts.file", count: doc.pages.size) %>
<% if doc.legacy_record? %>
"><%= t(".legacy_record") %><% end %>
<% if doc.expires_on %>
<%= doc.expired? ? t(".expired") : t(".expires") %> <%= fmt_date(doc.expires_on) %><% end %>
<% if doc.description.present? %>
<%= doc.description.truncate(120) %>
<% end %>
<%= visibility_badge(doc.effective_visibility) %>
<% if owner? %><%= link_to t(".edit"), edit_aircraft_document_path(aircraft, doc), class: "btn-secondary btn-sm" %><% end %>