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