summaryrefslogtreecommitdiff
path: root/app/views/users/index.html.erb
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-08-04 17:13:18 +0200
committererdgeist <erdgeist@erdgeist.org>2026-08-04 17:13:18 +0200
commitac01156d00b24d14225c8e75979fb59bba69640d (patch)
treef223b41358debb6cee45c5351d885505615b0e02 /app/views/users/index.html.erb
parent409d71ed471703be8c56f2639a3ecb0fa387e6a7 (diff)
Tidy up headings on house keeping views
- Collapse page headers into one action row with an optional hint - limit will_paginate to one row
Diffstat (limited to 'app/views/users/index.html.erb')
-rw-r--r--app/views/users/index.html.erb18
1 files changed, 7 insertions, 11 deletions
diff --git a/app/views/users/index.html.erb b/app/views/users/index.html.erb
index 2936bbea..71102c2c 100644
--- a/app/views/users/index.html.erb
+++ b/app/views/users/index.html.erb
@@ -1,14 +1,10 @@
1<h1><%= t(".title") %></h1> 1<%= render "shared/page_actions",
2 2 :title => t(".title"),
3<p class="button_row"> 3 :icon_name => "user-plus",
4 <% UsersController::ROLE_PRESETS.each_key do |preset| %> 4 :label => t(".create_account"),
5 <%= link_to new_user_path(:preset => preset), class: 'action_button' do %> 5 :options => UsersController::ROLE_PRESETS.each_key.map { |preset|
6 <%= icon("plus", library: "tabler", "aria-hidden": true) %> 6 [t(".create_#{preset}"), new_user_path(:preset => preset)] },
7 <%= t(".create_#{preset}") %> 7 :hint => t(".admin_hint") %>
8 <% end %>
9 <% end %>
10</p>
11<p class="field_hint"><%= t(".admin_hint") %></p>
12 8
13<% UsersController::GROUP_ORDER.each do |group| %> 9<% UsersController::GROUP_ORDER.each do |group| %>
14 <% members = @users[group] || [] %> 10 <% members = @users[group] || [] %>