summaryrefslogtreecommitdiff
path: root/app/views/users
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/users')
-rw-r--r--app/views/users/_user.html.erb6
-rw-r--r--app/views/users/index.html.erb18
2 files changed, 10 insertions, 14 deletions
diff --git a/app/views/users/_user.html.erb b/app/views/users/_user.html.erb
index 028ee02f..e70c7032 100644
--- a/app/views/users/_user.html.erb
+++ b/app/views/users/_user.html.erb
@@ -79,7 +79,7 @@
79 form: { data: { confirm: t(".confirm_revoke_redaktion", :login => user.login) }, 79 form: { data: { confirm: t(".confirm_revoke_redaktion", :login => user.login) },
80 class: 'button_to destructive' }, 80 class: 'button_to destructive' },
81 "aria-label" => t(".revoke_redaktion"), title: t(".revoke_redaktion") do %> 81 "aria-label" => t(".revoke_redaktion"), title: t(".revoke_redaktion") do %>
82 <%= icon("user-minus", library: "tabler", "aria-hidden": true) %> 82 <%= icon("users-minus", library: "tabler", "aria-hidden": true) %>
83 <% end %> 83 <% end %>
84 <% end %> 84 <% end %>
85 <% elsif user.otp_enrolled? %> 85 <% elsif user.otp_enrolled? %>
@@ -87,13 +87,13 @@
87 form: { data: { confirm: t(".confirm_grant_redaktion", :login => user.login) }, 87 form: { data: { confirm: t(".confirm_grant_redaktion", :login => user.login) },
88 class: 'button_to state_changing' }, 88 class: 'button_to state_changing' },
89 "aria-label" => t(".grant_redaktion"), title: t(".grant_redaktion") do %> 89 "aria-label" => t(".grant_redaktion"), title: t(".grant_redaktion") do %>
90 <%= icon("user-plus", library: "tabler", "aria-hidden": true) %> 90 <%= icon("users-plus", library: "tabler", "aria-hidden": true) %>
91 <% end %> 91 <% end %>
92 <% else %> 92 <% else %>
93 <button type="button" class="disabled_action" disabled 93 <button type="button" class="disabled_action" disabled
94 title="<%= t(".grant_redaktion_blocked") %>" 94 title="<%= t(".grant_redaktion_blocked") %>"
95 aria-label="<%= t(".grant_redaktion_blocked") %>"> 95 aria-label="<%= t(".grant_redaktion_blocked") %>">
96 <%= icon("user-plus", library: "tabler", "aria-hidden": true) %> 96 <%= icon("users-plus", library: "tabler", "aria-hidden": true) %>
97 </button> 97 </button>
98 <% end %> 98 <% end %>
99 <% end %> 99 <% end %>
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] || [] %>