diff options
| -rw-r--r-- | app/views/users/_user.html.erb | 7 | ||||
| -rw-r--r-- | config/locales/de.yml | 1 | ||||
| -rw-r--r-- | config/locales/en.yml | 1 | ||||
| -rw-r--r-- | public/stylesheets/admin.css | 3 |
4 files changed, 11 insertions, 1 deletions
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 | |||
| @@ -55,6 +55,13 @@ | |||
| 55 | </span> | 55 | </span> |
| 56 | 56 | ||
| 57 | <span class="user_action"> | 57 | <span class="user_action"> |
| 58 | <%= link_to admin_log_path(:user_id => user.id), | ||
| 59 | "aria-label" => t(".action_log"), title: t(".action_log") do %> | ||
| 60 | <%= icon("history", library: "tabler", "aria-hidden": true) %> | ||
| 61 | <% end %> | ||
| 62 | </span> | ||
| 63 | |||
| 64 | <span class="user_action"> | ||
| 58 | <% if current_user.admin? && current_user != user %> | 65 | <% if current_user.admin? && current_user != user %> |
| 59 | <% if user.alumni? %> | 66 | <% if user.alumni? %> |
| 60 | <%= button_to reactivate_user_path(user), method: :put, | 67 | <%= button_to reactivate_user_path(user), method: :put, |
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: | |||
| 326 | stale_amber: "Seit %{year} nicht angemeldet, Rollen entziehen?" | 326 | stale_amber: "Seit %{year} nicht angemeldet, Rollen entziehen?" |
| 327 | stale_red: "Seit %{year} nicht angemeldet, deaktivieren?" | 327 | stale_red: "Seit %{year} nicht angemeldet, deaktivieren?" |
| 328 | stale_never: "Noch nie angemeldet, nachfassen?" | 328 | stale_never: "Noch nie angemeldet, nachfassen?" |
| 329 | action_log: "Letzte Änderungen dieses Kontos" | ||
| 329 | index: | 330 | index: |
| 330 | title: "Benutzerkonten" | 331 | title: "Benutzerkonten" |
| 331 | create_editor: "Editor-Konto anlegen" | 332 | 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: | |||
| 273 | stale_amber: "Not signed in since %{year}, remove roles?" | 273 | stale_amber: "Not signed in since %{year}, remove roles?" |
| 274 | stale_red: "Not signed in since %{year}, deactivate?" | 274 | stale_red: "Not signed in since %{year}, deactivate?" |
| 275 | stale_never: "Never signed in, chase it up?" | 275 | stale_never: "Never signed in, chase it up?" |
| 276 | action_log: "Recent changes by this account" | ||
| 276 | 277 | ||
| 277 | index: | 278 | index: |
| 278 | title: "User accounts" | 279 | 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 { | |||
| 847 | .user_table td.user_actions { | 847 | .user_table td.user_actions { |
| 848 | width: 1px; | 848 | width: 1px; |
| 849 | white-space: nowrap; | 849 | white-space: nowrap; |
| 850 | padding-right: 0; | ||
| 850 | } | 851 | } |
| 851 | 852 | ||
| 852 | .user_table .user_action_grid { | 853 | .user_table .user_action_grid { |
| 853 | display: grid; | 854 | display: grid; |
| 854 | grid-template-columns: repeat(2, auto); | 855 | grid-template-columns: repeat(3, auto); |
| 855 | gap: 0.4rem; | 856 | gap: 0.4rem; |
| 856 | justify-content: end; | 857 | justify-content: end; |
| 857 | } | 858 | } |
