diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-08-02 19:43:23 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-08-02 19:43:23 +0200 |
| commit | 30d85119ba5cda8a23ca99df5af9e94f5391eb78 (patch) | |
| tree | 8efa4848159f5a4b125d9af64a9e9f0817a59682 | |
| parent | 706a695ab0a90cec5fc70841570e79fe96e174e6 (diff) | |
Prepare the user list for stacked account flags
| -rw-r--r-- | app/views/users/_user.html.erb | 28 | ||||
| -rw-r--r-- | 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 @@ | |||
| 1 | <% users.each do |user| %> | 1 | <% users.each do |user| %> |
| 2 | <tr> | 2 | <tr> |
| 3 | <td class="user_login"> | 3 | <td class="user_login"> |
| 4 | <% if user.otp_enrolled? %> | 4 | <span class="user_flag_stack"> |
| 5 | <span role="img" title="<%= t(".otp_enrolled") %>" aria-label="<%= t(".otp_enrolled") %>"> | 5 | <% if user.otp_enrolled? %> |
| 6 | <%= icon("shield-check", library: "tabler", "aria-hidden": true) %> | 6 | <span role="img" title="<%= t(".otp_enrolled") %>" aria-label="<%= t(".otp_enrolled") %>"> |
| 7 | </span> | 7 | <%= icon("shield-check", library: "tabler", "aria-hidden": true) %> |
| 8 | <% elsif user.otp_pending_secret.present? %> | 8 | </span> |
| 9 | <span role="img" class="otp_missing" title="<%= t(".otp_pending") %>" aria-label="<%= t(".otp_pending") %>"> | 9 | <% elsif user.otp_pending_secret.present? %> |
| 10 | <%= icon("shield-half", library: "tabler", "aria-hidden": true) %> | 10 | <span role="img" class="otp_missing" title="<%= t(".otp_pending") %>" aria-label="<%= t(".otp_pending") %>"> |
| 11 | </span> | 11 | <%= icon("shield-half", library: "tabler", "aria-hidden": true) %> |
| 12 | <% else %> | 12 | </span> |
| 13 | <span role="img" class="otp_missing" title="<%= t(".otp_missing") %>" aria-label="<%= t(".otp_missing") %>"> | 13 | <% else %> |
| 14 | <%= icon("shield-off", library: "tabler", "aria-hidden": true) %> | 14 | <span role="img" class="otp_missing" title="<%= t(".otp_missing") %>" aria-label="<%= t(".otp_missing") %>"> |
| 15 | </span> | 15 | <%= icon("shield-off", library: "tabler", "aria-hidden": true) %> |
| 16 | <% end %> | 16 | </span> |
| 17 | <% end %> | ||
| 18 | </span> | ||
| 17 | <%= user.login %> | 19 | <%= user.login %> |
| 18 | </td> | 20 | </td> |
| 19 | <td class="user_roles"> | 21 | <td class="user_roles"> |
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 { | |||
| 911 | display: block; | 911 | display: block; |
| 912 | } | 912 | } |
| 913 | 913 | ||
| 914 | .user_table .user_login svg { | 914 | .user_table .user_login .user_flag_stack { |
| 915 | color: var(--text-muted); | 915 | display: inline-flex; |
| 916 | flex-direction: column; | ||
| 917 | align-items: center; | ||
| 918 | gap: 0.25rem; | ||
| 916 | vertical-align: -0.15em; | 919 | vertical-align: -0.15em; |
| 917 | margin-right: 0.5rem; | 920 | margin-right: 0.5rem; |
| 921 | } | ||
| 922 | |||
| 923 | .user_table .user_login svg { | ||
| 924 | color: var(--text-muted); | ||
| 918 | width: 1rem; | 925 | width: 1rem; |
| 919 | height: 1rem; | 926 | height: 1rem; |
| 920 | } | 927 | } |
