diff --git a/app/views/admin/communication/websites/pages/_list.html.erb b/app/views/admin/communication/websites/pages/_list.html.erb index c3eae13ed6c939f56d9511fbd7d88b31b75e95d1..49f5f75d65a69027137590a95bf2de57c0a5ebb4 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 36cfdc5100c7b4a919c932d7b597b071b033c829..5546eb4dba85732c5895518d8e5cc621a3b4d2e6 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 59818b68cab6b2eb939ae8a56887754a9095824a..ae7582ce66665d87cbe73ecd2a0c82ff332a355d 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 666ecca9e662489f5defb90971d4a32d16b037d7..aa48dcf5ad6d9245c9a7a534e2e65ddb2e8f9560 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 e68baef967f11d82daa4e8e9586f5f8800de8529..41bc8278c4b70999e7a84349e737c83f69fa801f 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: