• <%= 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.description.present? %>
    <%= doc.description.truncate(120) %>
    <% end %>
    <%= visibility_badge(doc.effective_visibility) %> <% if owner? %><%= link_to "Edit", edit_aircraft_document_path(aircraft, doc), class: "btn-secondary btn-sm" %><% end %>