From 87f3403dfcfa008070f69fe588e1e108c001fe27 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Thu, 23 Jul 2026 20:45:22 +0200 Subject: Restyle pdf headline cards --- app/views/content/_headline_image.html.erb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'app/views/content') diff --git a/app/views/content/_headline_image.html.erb b/app/views/content/_headline_image.html.erb index 4a3dfdc0..c05b17ef 100644 --- a/app/views/content/_headline_image.html.erb +++ b/app/views/content/_headline_image.html.erb @@ -6,8 +6,11 @@ <%= link_to @headline_asset.upload.url, :class => "headline_document_card", :target => "_blank", :rel => "noopener" do %> <%= image_tag @headline_asset.upload.url(:medium), :alt => "", :class => "headline_document_card_thumb" %>
- <%= icon("file-text", library: "tabler", "aria-hidden": true) %> - <%= @headline_asset.name %> +
+ <%= icon("file-text", library: "tabler", "aria-hidden": true) %> + <%= humanized_asset_name(@headline_asset) %> +
+ PDF ยท <%= number_to_human_size(@headline_asset.upload.size) %>
<% end %> <% end %> @@ -50,7 +53,7 @@
  • <%= link_to pdf.upload.url, :class => "related_document_link", :target => "_blank", :rel => "noopener" do %> <%= icon("file-text", library: "tabler", "aria-hidden": true) %> - <%= pdf.name %> + <%= humanized_asset_name(pdf) %> <% end %>
  • <% end %> -- cgit v1.3