Adjust filter for platform_admin user search and update views

This commit is contained in:
Janis Vaneylen
2022-09-09 17:51:24 +02:00
committed by Sebastian Serth
parent 02c65af034
commit 998a12e6bc
8 changed files with 25 additions and 25 deletions

View File

@@ -6,7 +6,7 @@ h1 = @user.displayname
code
= @user.external_id
= row(label: 'external_user.consumer', value: link_to_if(policy(@user.consumer).show?, @user.consumer, @user.consumer))
= row(label: 'external_user.role', value: t("users.roles.#{@user.role}"))
= row(label: 'external_user.platform_admin', value: @user.platform_admin?)
h4.mt-4 = link_to(t('.exercise_statistics'), statistics_external_user_path(@user)) if policy(@user).statistics?