diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-25 14:24:03 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-25 14:24:03 +0200 |
| commit | de9a3a5591d4b17c0e0f17abc0ee8ffe85de50e6 (patch) | |
| tree | a66f5f798399a72a1a351c72ff1f4c864d2d5514 /app/views/assets/index.html.erb | |
| parent | baace1fa5df46694ddd515dc3bbca59b22df8692 (diff) | |
Extract admin strings to i18n: assets and events clusters
Diffstat (limited to 'app/views/assets/index.html.erb')
| -rw-r--r-- | app/views/assets/index.html.erb | 18 |
1 files changed, 9 insertions, 9 deletions
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 @@ | |||
| 1 | <h1>Assets</h1> | 1 | <h1><%= t(".title") %></h1> |
| 2 | 2 | ||
| 3 | <%= link_to new_asset_path, class: 'action_button' do %> | 3 | <%= link_to new_asset_path, class: 'action_button' do %> |
| 4 | <%= icon("plus", library: "tabler", "aria-hidden": true) %> Create asset | 4 | <%= icon("plus", library: "tabler", "aria-hidden": true) %> <%= t(".create_asset") %> |
| 5 | <% end %> | 5 | <% end %> |
| 6 | 6 | ||
| 7 | <%= will_paginate @assets %> | 7 | <%= will_paginate @assets %> |
| 8 | 8 | ||
| 9 | <table class="assets_table"> | 9 | <table class="assets_table"> |
| 10 | <tr class="header"> | 10 | <tr class="header"> |
| 11 | <th>Preview</th> | 11 | <th><%= t("admin.columns.preview") %></th> |
| 12 | <th>Name</th> | 12 | <th><%= t("admin.columns.name") %></th> |
| 13 | <th>Type</th> | 13 | <th><%= t("admin.columns.type") %></th> |
| 14 | <th></th> | 14 | <th></th> |
| 15 | <th></th> | 15 | <th></th> |
| 16 | <th></th> | 16 | <th></th> |
| @@ -20,10 +20,10 @@ | |||
| 20 | <td><% if asset.has_variant?(:thumb) %><%= image_tag asset.upload.url(:thumb), style: "max-width: 100px; max-height: 100px;" %><% end %></td> | 20 | <td><% if asset.has_variant?(:thumb) %><%= image_tag asset.upload.url(:thumb), style: "max-width: 100px; max-height: 100px;" %><% end %></td> |
| 21 | <td><%= link_to asset.name, asset.upload.url %></td> | 21 | <td><%= link_to asset.name, asset.upload.url %></td> |
| 22 | <td><%= asset.upload.content_type %></td> | 22 | <td><%= asset.upload.content_type %></td> |
| 23 | <td><%= link_to 'Show', asset %></td> | 23 | <td><%= link_to t("admin.common.show"), asset %></td> |
| 24 | <td><%= link_to 'Edit', edit_asset_path(asset) %></td> | 24 | <td><%= link_to t("admin.common.edit"), edit_asset_path(asset) %></td> |
| 25 | <td><%= button_to asset, method: :delete, form: { data: { confirm: 'Are you sure?' }, class: 'button_to destructive' } do %> | 25 | <td><%= button_to asset, method: :delete, form: { data: { confirm: t("admin.common.confirm_sure") }, class: 'button_to destructive' } do %> |
| 26 | <%= icon("trash", library: "tabler", "aria-hidden": true) %> Destroy | 26 | <%= icon("trash", library: "tabler", "aria-hidden": true) %> <%= t("admin.common.destroy") %> |
| 27 | <% end %></td> | 27 | <% end %></td> |
| 28 | </tr> | 28 | </tr> |
| 29 | <% end %> | 29 | <% end %> |
