Skip to content

Commit 2485580

Browse files
committed
Show Passkey registration status on index pages
1 parent bacf32d commit 2485580

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

app/views/external_users/index.html.slim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ h1 = ExternalUser.model_name.human(count: :other)
3838
th = ExternalUser.human_attribute_name('consumer')
3939
- if current_user.admin?
4040
th = ExternalUser.human_attribute_name('platform_admin')
41+
th = WebauthnCredential.model_name.human
4142
th = t('shared.actions')
4243
tbody
4344
- @users.each do |user|
@@ -46,6 +47,7 @@ h1 = ExternalUser.model_name.human(count: :other)
4647
td = link_to_if(user.consumer.present? && policy(user.consumer).show?, user.consumer, user.consumer)
4748
- if current_user.admin?
4849
td = symbol_for(user.platform_admin?)
50+
td = symbol_for(user.webauthn_configured?)
4951
td = link_to(t('shared.show'), user) if policy(user).show?
5052

5153
= render('shared/pagination', collection: @users)

app/views/internal_users/index.html.slim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ h1 = InternalUser.model_name.human(count: :other)
1919
th = InternalUser.human_attribute_name('consumer')
2020
- if current_user.admin?
2121
th = InternalUser.human_attribute_name('platform_admin')
22+
th = WebauthnCredential.model_name.human
2223
th colspan=3 = t('shared.actions')
2324
tbody
2425
- @users.each do |user|
@@ -27,6 +28,7 @@ h1 = InternalUser.model_name.human(count: :other)
2728
td = user.consumer ? link_to_if(user.consumer.present? && policy(user.consumer).show?, user.consumer, user.consumer) : empty
2829
- if current_user.admin?
2930
td = symbol_for(user.platform_admin?)
31+
td = symbol_for(user.webauthn_configured?)
3032
td = link_to(t('shared.show'), user) if policy(user).show?
3133
td = link_to(t('shared.edit'), edit_internal_user_path(user)) if policy(user).edit?
3234
td = link_to(t('shared.destroy'), user, data: {confirm: t('shared.confirm_destroy')}, method: :delete) if policy(user).destroy?

0 commit comments

Comments
 (0)