From 09912e1a048a97660983b4571e395f36afa739a5 Mon Sep 17 00:00:00 2001 From: Arnaud Levy <contact@arnaudlevy.com> Date: Thu, 16 Nov 2023 16:14:11 +0100 Subject: [PATCH] Fix #1429 --- app/views/admin/communication/websites/pages/_list.html.erb | 4 +--- app/views/admin/education/programs/show/_roles.html.erb | 2 +- app/views/admin/education/programs/show/_teachers.html.erb | 2 +- config/locales/education/en.yml | 1 + config/locales/education/fr.yml | 1 + 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/views/admin/communication/websites/pages/_list.html.erb b/app/views/admin/communication/websites/pages/_list.html.erb index c3eae13ed..49f5f75d6 100644 --- a/app/views/admin/communication/websites/pages/_list.html.erb +++ b/app/views/admin/communication/websites/pages/_list.html.erb @@ -19,9 +19,7 @@ <% end %> </td> <td> - <% if page.featured_image.attached? %> - <%= kamifusen_tag page.featured_image, width: 100 %> - <% end %> + <%= kamifusen_tag page.featured_image, width: 100 if page.featured_image.attached? %> </td> <td class="small"> <% if page.is_special_page? %> diff --git a/app/views/admin/education/programs/show/_roles.html.erb b/app/views/admin/education/programs/show/_roles.html.erb index 36cfdc510..5546eb4db 100644 --- a/app/views/admin/education/programs/show/_roles.html.erb +++ b/app/views/admin/education/programs/show/_roles.html.erb @@ -3,7 +3,7 @@ action = '' if !current_user.program_manager? || current_user.programs_to_manage.pluck(:education_program_id).include?(@program.id) action += link_to t('education.manage_roles'), admin_education_program_roles_path(program_id: @program.id), - class: button_classes if can?(:update, University::Role) + class: 'action' if can?(:update, University::Role) end %> <%= osuny_panel Education::Program.human_attribute_name('roles'), action: action, classes: 'mt-5' do %> diff --git a/app/views/admin/education/programs/show/_teachers.html.erb b/app/views/admin/education/programs/show/_teachers.html.erb index 59818b68c..ae7582ce6 100644 --- a/app/views/admin/education/programs/show/_teachers.html.erb +++ b/app/views/admin/education/programs/show/_teachers.html.erb @@ -3,7 +3,7 @@ action = '' if !current_user.program_manager? || current_user.programs_to_manage.pluck(:education_program_id).include?(@program.id) action += link_to t('education.manage_teachers'), admin_education_program_teachers_path(program_id: @program.id), - class: button_classes if can?(:update, University::Person::Involvement) + class: 'action' if can?(:update, University::Person::Involvement) end %> <%= osuny_panel Education::Program.human_attribute_name('teachers'), action: action, classes: 'mt-5' do %> diff --git a/config/locales/education/en.yml b/config/locales/education/en.yml index 666ecca9e..aa48dcf5a 100644 --- a/config/locales/education/en.yml +++ b/config/locales/education/en.yml @@ -109,6 +109,7 @@ en: description: Presentation of the students who have studied in the various courses. manage_programs: Manage programs manage_roles: Manage roles + manage_teachers: Manage teachers number_of_programs: Number of programs program: parts: diff --git a/config/locales/education/fr.yml b/config/locales/education/fr.yml index e68baef96..41bc8278c 100644 --- a/config/locales/education/fr.yml +++ b/config/locales/education/fr.yml @@ -109,6 +109,7 @@ fr: description: Présentation des étudiants et étudiantes ayant étudié dans les différentes formations manage_programs: Gérer les formations manage_roles: Gérer les rôles + manage_teachers: Gérer les enseignements number_of_programs: Nombre de formations program: parts: -- GitLab