From 5a92cdea355b57443f33eee281238451d83df1cd Mon Sep 17 00:00:00 2001 From: erdgeist Date: Mon, 3 Aug 2026 01:25:56 +0200 Subject: Link each account to its own entries in the log --- app/views/users/_user.html.erb | 7 +++++++ config/locales/de.yml | 1 + config/locales/en.yml | 1 + public/stylesheets/admin.css | 3 ++- 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/app/views/users/_user.html.erb b/app/views/users/_user.html.erb index 37009027..aa65cc3d 100644 --- a/app/views/users/_user.html.erb +++ b/app/views/users/_user.html.erb @@ -54,6 +54,13 @@ <% 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 user.alumni? %> diff --git a/config/locales/de.yml b/config/locales/de.yml index 179e42c3..027fcd44 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -326,6 +326,7 @@ de: stale_amber: "Seit %{year} nicht angemeldet, Rollen entziehen?" stale_red: "Seit %{year} nicht angemeldet, deaktivieren?" stale_never: "Noch nie angemeldet, nachfassen?" + action_log: "Letzte Änderungen dieses Kontos" index: title: "Benutzerkonten" create_editor: "Editor-Konto anlegen" diff --git a/config/locales/en.yml b/config/locales/en.yml index 39f0e600..256c8540 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -273,6 +273,7 @@ en: stale_amber: "Not signed in since %{year}, remove roles?" stale_red: "Not signed in since %{year}, deactivate?" stale_never: "Never signed in, chase it up?" + action_log: "Recent changes by this account" index: title: "User accounts" diff --git a/public/stylesheets/admin.css b/public/stylesheets/admin.css index 97df120a..9d8f4d49 100644 --- a/public/stylesheets/admin.css +++ b/public/stylesheets/admin.css @@ -847,11 +847,12 @@ table.revisions_table tr:hover { .user_table td.user_actions { width: 1px; white-space: nowrap; + padding-right: 0; } .user_table .user_action_grid { display: grid; - grid-template-columns: repeat(2, auto); + grid-template-columns: repeat(3, auto); gap: 0.4rem; justify-content: end; } -- cgit v1.3