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 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'app/views/users/_user.html.erb') 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 %> -- cgit v1.3