diff --git a/app/views/external_users/show.html.slim b/app/views/external_users/show.html.slim index a67db525..bd896ae7 100644 --- a/app/views/external_users/show.html.slim +++ b/app/views/external_users/show.html.slim @@ -7,6 +7,7 @@ h1 = @user.displayname = @user.external_id = row(label: 'external_user.consumer', value: link_to_if(policy(@user.consumer).show?, @user.consumer, @user.consumer)) = row(label: 'external_user.platform_admin', value: @user.platform_admin?) += row(label: 'external_users.form.study_groups', value: @user.study_groups.map{|sg| "#{sg.name}"}.sort.join(", ")) h4.mt-4 = link_to(t('.exercise_statistics'), statistics_external_user_path(@user)) if policy(@user).statistics? diff --git a/app/views/internal_users/show.html.slim b/app/views/internal_users/show.html.slim index faa7fcbc..934ce827 100644 --- a/app/views/internal_users/show.html.slim +++ b/app/views/internal_users/show.html.slim @@ -7,5 +7,6 @@ h1 = row(label: 'internal_user.consumer', value: @user.consumer ? link_to_if(policy(@user.consumer).show?, @user.consumer, @user.consumer) : nil) = row(label: 'internal_user.platform_admin', value: @user.platform_admin?) = row(label: 'internal_user.activated', value: @user.activated?) += row(label: 'internal_users.form.study_groups', value: @user.study_groups.map{|sg| "#{sg.name}"}.sort.join(", ")) = row(label: 'codeharbor_link.profile_label', value: @user.codeharbor_link.nil? ? link_to(t('codeharbor_link.new'), new_codeharbor_link_path, class: 'btn btn-secondary') : link_to(t('codeharbor_link.edit'), edit_codeharbor_link_path(@user.codeharbor_link), class: 'btn btn-secondary')) diff --git a/config/locales/de.yml b/config/locales/de.yml index 63b54648..f75ad4dc 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -553,6 +553,8 @@ de: tag_statistics: "Lernbereichstatistiken" empty_tag_statistics: "Keine Statistiken verfügbar" exercise_statistics: "Aufgabenstatistiken" + form: + study_groups: Lerngruppen files: roles: main_file: Hauptdatei diff --git a/config/locales/en.yml b/config/locales/en.yml index aa0d8f51..5be19d30 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -553,6 +553,8 @@ en: tag_statistics: "Tag Statistics" empty_tag_statistics: "No statistics available" exercise_statistics: "Exercise Statistics" + form: + study_groups: Study Groups files: roles: main_file: Main File