From de9a3a5591d4b17c0e0f17abc0ee8ffe85de50e6 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Sat, 25 Jul 2026 14:24:03 +0200 Subject: Extract admin strings to i18n: assets and events clusters --- app/views/assets/show.html.erb | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'app/views/assets/show.html.erb') diff --git a/app/views/assets/show.html.erb b/app/views/assets/show.html.erb index 4ec77dff..f5a7e055 100644 --- a/app/views/assets/show.html.erb +++ b/app/views/assets/show.html.erb @@ -2,16 +2,16 @@

<%= @asset.name %>

-
Actions
+
<%= t("admin.columns.actions") %>
<%= link_to edit_asset_path(@asset), class: 'action_button' do %> - <%= icon("edit", library: "tabler", "aria-hidden": true) %> Edit + <%= icon("edit", library: "tabler", "aria-hidden": true) %> <%= t("admin.common.edit") %> <% end %>
- <%= link_to 'Back', assets_path %> + <%= link_to link_to t("admin.common.back"), assets_path %>
<%= link_to admin_log_path(:asset_id => @asset.id), :class => "action_button" do %> <%= icon("history", library: "tabler", "aria-hidden": true) %> <%= t("node_actions.asset_history") %> @@ -20,11 +20,11 @@
<% if @asset.has_variant?(:medium) %> -
Thumbnail
+
<%= t(".thumbnail") %>
<%= image_tag @asset.upload.url(:medium), style: "max-width: 300px; max-height: 300px;" %>
<% end %> -
Attached to
+
<%= t(".attached_to") %>
<% nodes = @asset.attached_nodes %> <% if nodes.any? %> @@ -36,34 +36,34 @@ <%= icon("star", library: "tabler", "aria-hidden": true) %> <% end %> <% unless node.head && node.head.related_assets.exists?(:asset_id => @asset.id) %> - pending versions only + <%= t(".pending_only") %> <% end %> <% end %> <% else %> - — not attached to any page — + <%= t(".not_attached") %> <% end %> <%= link_to new_node_path(:asset_id => @asset.id), :class => "action_button" do %> - <%= icon("file-plus", library: "tabler", "aria-hidden": true) %> New page with this attachment + <%= icon("file-plus", library: "tabler", "aria-hidden": true) %> <%= t(".new_page_with_attachment") %> <% end %>
-
Public Path
+
<%= t(".public_path") %>
<% public_path = @asset.upload.url.sub(/\?\d+$/, "") %> <%= link_to public_path, public_path, target: "_blank", rel: "noopener" %>
-
Creator
+
<%= t(".creator") %>
<%= @asset.creator.presence || "—" %>
-
Source
+
<%= t(".source") %>
<% if @asset.source_url.present? %> <%= link_to @asset.source_url, @asset.source_url %> @@ -72,7 +72,7 @@ <% end %>
-
License
+
<%= t(".license") %>
<% if (license = AssetLicense.find(@asset.license_key)) %> <%= t("asset_licenses.#{license.key}") %> @@ -81,10 +81,10 @@ <% end %>
-
Content Type
+
<%= t(".content_type") %>
<%= @asset.upload.content_type %>
-
Size
+
<%= t(".size") %>
<%= "#{@asset.upload.size/1024} KB" %>
-- cgit v1.3