From 30d85119ba5cda8a23ca99df5af9e94f5391eb78 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Sun, 2 Aug 2026 19:43:23 +0200 Subject: Prepare the user list for stacked account flags --- app/views/users/_user.html.erb | 28 +++++++++++++++------------- public/stylesheets/admin.css | 11 +++++++++-- 2 files changed, 24 insertions(+), 15 deletions(-) diff --git a/app/views/users/_user.html.erb b/app/views/users/_user.html.erb index 26d6cab2..d944fff0 100644 --- a/app/views/users/_user.html.erb +++ b/app/views/users/_user.html.erb @@ -1,19 +1,21 @@ <% users.each do |user| %> - <% if user.otp_enrolled? %> - " aria-label="<%= t(".otp_enrolled") %>"> - <%= icon("shield-check", library: "tabler", "aria-hidden": true) %> - - <% elsif user.otp_pending_secret.present? %> - " aria-label="<%= t(".otp_pending") %>"> - <%= icon("shield-half", library: "tabler", "aria-hidden": true) %> - - <% else %> - " aria-label="<%= t(".otp_missing") %>"> - <%= icon("shield-off", library: "tabler", "aria-hidden": true) %> - - <% end %> + + <% if user.otp_enrolled? %> + " aria-label="<%= t(".otp_enrolled") %>"> + <%= icon("shield-check", library: "tabler", "aria-hidden": true) %> + + <% elsif user.otp_pending_secret.present? %> + " aria-label="<%= t(".otp_pending") %>"> + <%= icon("shield-half", library: "tabler", "aria-hidden": true) %> + + <% else %> + " aria-label="<%= t(".otp_missing") %>"> + <%= icon("shield-off", library: "tabler", "aria-hidden": true) %> + + <% end %> + <%= user.login %> diff --git a/public/stylesheets/admin.css b/public/stylesheets/admin.css index ba6a27f8..82d1d381 100644 --- a/public/stylesheets/admin.css +++ b/public/stylesheets/admin.css @@ -911,10 +911,17 @@ table.revisions_table tr:hover { display: block; } -.user_table .user_login svg { - color: var(--text-muted); +.user_table .user_login .user_flag_stack { + display: inline-flex; + flex-direction: column; + align-items: center; + gap: 0.25rem; vertical-align: -0.15em; margin-right: 0.5rem; +} + +.user_table .user_login svg { + color: var(--text-muted); width: 1rem; height: 1rem; } -- cgit v1.3