From 409d71ed471703be8c56f2639a3ecb0fa387e6a7 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Tue, 4 Aug 2026 07:07:05 +0200 Subject: Give node lists a flag column and a shared action bar --- app/views/users/_user.html.erb | 18 +++++++++--------- app/views/users/edit.html.erb | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) (limited to 'app/views/users') diff --git a/app/views/users/_user.html.erb b/app/views/users/_user.html.erb index be92ad1d..028ee02f 100644 --- a/app/views/users/_user.html.erb +++ b/app/views/users/_user.html.erb @@ -27,17 +27,17 @@ <%= t(".no_roles") %> <% end %> - -
- + +
+ <%= link_to user_path(user), "aria-label" => t("admin.common.show"), title: t("admin.common.show") do %> <%= icon("eye", library: "tabler", "aria-hidden": true) %> <% end %> - - <% if current_user.admin? || current_user == user %> + + <% if current_user.is_admin? || current_user == user %> <%= link_to edit_user_path(user), "aria-label" => t("admin.common.edit"), title: t("admin.common.edit") do %> <%= icon("edit", library: "tabler", "aria-hidden": true) %> @@ -45,15 +45,15 @@ <% end %> - + <%= link_to admin_log_path(:user_id => user.id), "aria-label" => t(".action_log"), title: t(".action_log") do %> <%= icon("history", library: "tabler", "aria-hidden": true) %> <% end %> - - <% if current_user.admin? && current_user != user %> + + <% if current_user.is_admin? && current_user != user %> <% if user.alumni? %> <%= button_to reactivate_user_path(user), method: :put, form: { class: 'button_to state_changing' }, @@ -71,7 +71,7 @@ <% end %> - + <% if current_user.redaktion? && !user.alumni? %> <% if user.redaktion? %> <% unless user == current_user %> diff --git a/app/views/users/edit.html.erb b/app/views/users/edit.html.erb index ad2e0891..1763394d 100644 --- a/app/views/users/edit.html.erb +++ b/app/views/users/edit.html.erb @@ -20,7 +20,7 @@
<%= t("users.labels.confirm") %>
<%= f.password_field :password_confirmation, :autocomplete => "new-password" %>
- <% if current_user.admin? %> + <% if current_user.is_admin? %>
<%= t("users.labels.roles") %>
<% User::ROLES.each do |role| %> @@ -62,7 +62,7 @@ <% end %> <% end %>
- <% elsif current_user.admin? && @user.otp_enrolled? %> + <% elsif current_user.is_admin? && @user.otp_enrolled? %>
<%= t(".second_factor") %>
<%= t(".enabled") %> -- cgit v1.3