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 /app | |
| parent | 706a695ab0a90cec5fc70841570e79fe96e174e6 (diff) | |
Prepare the user list for stacked account flags
Diffstat (limited to 'app')
| -rw-r--r-- | app/views/users/_user.html.erb | 28 |
1 files changed, 15 insertions, 13 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"> |
