summaryrefslogtreecommitdiff
path: root/app/views/users/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/users/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/users/index.html.erb')
-rw-r--r--app/views/users/index.html.erb8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/views/users/index.html.erb b/app/views/users/index.html.erb
index 46e958bf..4f5266d8 100644
--- a/app/views/users/index.html.erb
+++ b/app/views/users/index.html.erb
@@ -1,5 +1,7 @@
1<h1>Admins</h1> 1<h1>Admins</h1>
2<%= link_to 'New admin user', new_user_path(admin: true), class: 'action_button' %> 2<%= link_to new_user_path(admin: true), class: 'action_button' do %>
3 <%= icon("plus", library: "tabler", "aria-hidden": true) %> Create admin user
4<% end %>
3<table class="user_table"> 5<table class="user_table">
4 <tr class="header"> 6 <tr class="header">
5 <th>Login</th> 7 <th>Login</th>
@@ -11,7 +13,9 @@
11</table> 13</table>
12 14
13<h1>Users</h1> 15<h1>Users</h1>
14<%= link_to 'New user', new_user_path, class: 'action_button' %> 16<%= link_to new_user_path, class: 'action_button' do %>
17 <%= icon("plus", library: "tabler", "aria-hidden": true) %> Create user
18<% end %>
15<table class="user_table"> 19<table class="user_table">
16 <tr class="header"> 20 <tr class="header">
17 <th>Login</th> 21 <th>Login</th>