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/index.html.erb | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'app/views/assets/index.html.erb') diff --git a/app/views/assets/index.html.erb b/app/views/assets/index.html.erb index ff1300a2..81d2686a 100644 --- a/app/views/assets/index.html.erb +++ b/app/views/assets/index.html.erb @@ -1,16 +1,16 @@ -

Assets

+

<%= t(".title") %>

<%= link_to new_asset_path, class: 'action_button' do %> - <%= icon("plus", library: "tabler", "aria-hidden": true) %> Create asset + <%= icon("plus", library: "tabler", "aria-hidden": true) %> <%= t(".create_asset") %> <% end %> <%= will_paginate @assets %> - - - + + + @@ -20,10 +20,10 @@ - - - + + <% end %> -- cgit v1.3
PreviewNameType<%= t("admin.columns.preview") %><%= t("admin.columns.name") %><%= t("admin.columns.type") %> <% if asset.has_variant?(:thumb) %><%= image_tag asset.upload.url(:thumb), style: "max-width: 100px; max-height: 100px;" %><% end %> <%= link_to asset.name, asset.upload.url %> <%= asset.upload.content_type %><%= link_to 'Show', asset %><%= link_to 'Edit', edit_asset_path(asset) %><%= button_to asset, method: :delete, form: { data: { confirm: 'Are you sure?' }, class: 'button_to destructive' } do %> - <%= icon("trash", library: "tabler", "aria-hidden": true) %> Destroy + <%= link_to t("admin.common.show"), asset %><%= link_to t("admin.common.edit"), edit_asset_path(asset) %><%= button_to asset, method: :delete, form: { data: { confirm: t("admin.common.confirm_sure") }, class: 'button_to destructive' } do %> + <%= icon("trash", library: "tabler", "aria-hidden": true) %> <%= t("admin.common.destroy") %> <% end %>