summaryrefslogtreecommitdiff
path: root/app/views/assets/index.html.erb
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-07-12 23:43:02 +0200
committererdgeist <erdgeist@erdgeist.org>2026-07-12 23:43:02 +0200
commit848ce18303f927bfadaf0965a769cae2c62492a0 (patch)
tree3cb14888a0df92178cd20037e7fe94f407d5ad2e /app/views/assets/index.html.erb
parentb271648f89cba7cafafa1b73b1658b1c1bc0e4b0 (diff)
Normalize action-button wording and add icons app-wide
"New X" becomes "Create X" throughout (users, events, assets, menu items, nodes), matching the verb-first pattern the dashboard's own signposts already established, with a shared plus icon rather than a document-flavored one that only made sense next to "post". The "Destroy"/"destroy"/"Delete" family is normalized to "Destroy" everywhere, with a shared trash icon; occurrences#index and pages#index also pick up the destructive button class they'd been silently missing. Filter and Search convert from submit_tag to button_tag, the only way either can hold an icon alongside its label. Edit and the node editor's three dynamic labels (Continue Editing / Edit Draft / Lock + Edit) share one icon without touching their wording -- unlike Destroy's family, the state nuance in the text is real information, not just inconsistent phrasing.
Diffstat (limited to 'app/views/assets/index.html.erb')
-rw-r--r--app/views/assets/index.html.erb8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/views/assets/index.html.erb b/app/views/assets/index.html.erb
index 6591091e..8c355617 100644
--- a/app/views/assets/index.html.erb
+++ b/app/views/assets/index.html.erb
@@ -1,6 +1,8 @@
1<h1>Assets</h1> 1<h1>Assets</h1>
2 2
3<%= link_to 'New asset', new_asset_path, class: 'action_button' %> 3<%= link_to new_asset_path, class: 'action_button' do %>
4 <%= icon("plus", library: "tabler", "aria-hidden": true) %> Create asset
5<% end %>
4 6
5<%= will_paginate @assets %> 7<%= will_paginate @assets %>
6 8
@@ -20,7 +22,9 @@
20 <td><%= asset.upload.content_type %></td> 22 <td><%= asset.upload.content_type %></td>
21 <td><%= link_to 'Show', asset %></td> 23 <td><%= link_to 'Show', asset %></td>
22 <td><%= link_to 'Edit', edit_asset_path(asset) %></td> 24 <td><%= link_to 'Edit', edit_asset_path(asset) %></td>
23 <td><%= button_to 'Destroy', asset, method: :delete, form: { data: { confirm: 'Are you sure?' }, class: 'button_to destructive' } %></td> 25 <td><%= button_to asset, method: :delete, form: { data: { confirm: 'Are you sure?' }, class: 'button_to destructive' } do %>
26 <%= icon("trash", library: "tabler", "aria-hidden": true) %> Destroy
27 <% end %></td>
24 </tr> 28 </tr>
25<% end %> 29<% end %>
26</table> 30</table>