Attachment meta example
Default
How it looks
(preview)
How to call this example
<%= render "components/attachment_meta", {
attachment: {
title: "The government financial reporting review",
url: "https://assets.publishing.service.gov.uk/government/uploads/system/uploads/attachment_data/file/791567/the_government_financial_reporting_review_web.pdf",
filename: "department-for-transport-information-asset-register.csv",
content_type: "application/pdf",
file_size: 20000,
number_of_pages: 7,
isbn: "978-1-5286-1173-2",
unique_reference: "2259"
}
} %>