Attachment meta
This component is not valid
Please define accessibility acceptance criteria for this component.Renders attachment metadata
Renders only the metadata associated with an attachment (e.g. file type, size, reference numbers). This duplicates the view and logic of the centralised ‘Attachment’ component, but is intended for use where the thumbnail, ‘request an accessibile version’ and ‘Order a copy’ links, and title are not desired.
How it looks (preview) (preview all)
How to call this component
<%= 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"
}
} %>
Other examples
Command paper numbered (preview)
Command paper, numbered
<%= 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",
command_paper_number: "67"
}
} %>
Command paper unnumbered (preview)
Command paper, unnumbered
<%= 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: "the_government_financial_reporting_review_web.pdf",
content_type: "application/pdf",
file_size: 20000,
number_of_pages: 7,
isbn: "978-1-5286-1173-2",
unique_reference: "2259",
unnumbered_command_paper: true
}
} %>
Act paper numbered (preview)
Act paper (House of Commons paper), numbered
<%= render "components/attachment_meta", {
attachment: {
title: "Budget 2020",
url: "https://assets.publishing.service.gov.uk/government/uploads/system/uploads/attachment_data/file/871799/Budget_2020_Web_Accessible_Complete.pdf",
filename: "Budget_2020_Web_Accessible_Complete.pdf",
content_type: "application/pdf",
file_size: 20000,
number_of_pages: 12,
isbn: "978-1-913635-01-5",
unique_reference: "2942",
hoc_paper_number: "121",
parliamentary_session: "2019-20"
}
} %>
Act paper unnumbered (preview)
Act paper (House of Commons paper), unnumbered
<%= render "components/attachment_meta", {
attachment: {
title: "Budget 2020",
url: "https://assets.publishing.service.gov.uk/government/uploads/system/uploads/attachment_data/file/871799/Budget_2020_Web_Accessible_Complete.pdf",
filename: "Budget_2020_Web_Accessible_Complete.pdf",
content_type: "application/pdf",
file_size: 20000,
number_of_pages: 12,
isbn: "978-1-913635-01-5",
unique_reference: "2942",
unnumbered_hoc_paper: true
}
} %>