From ec21f78274aff4a0d36cccc82e397908ab69f38f Mon Sep 17 00:00:00 2001 From: Frederic Merizen Date: Thu, 19 Apr 2018 15:22:52 +0200 Subject: [PATCH] Cosmetic refactor left procedure admin panel --- ...nel_admin_procedurescontroller_navbar.html.haml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/views/layouts/left_panels/_left_panel_admin_procedurescontroller_navbar.html.haml b/app/views/layouts/left_panels/_left_panel_admin_procedurescontroller_navbar.html.haml index 24bace7a6..39519751c 100644 --- a/app/views/layouts/left_panels/_left_panel_admin_procedurescontroller_navbar.html.haml +++ b/app/views/layouts/left_panels/_left_panel_admin_procedurescontroller_navbar.html.haml @@ -10,7 +10,7 @@ #menu-block .split-hr-left #procedure-list - %a#onglet-infos{ :href => "#{url_for admin_procedure_path(@procedure)}" } + %a#onglet-infos{ href: url_for(admin_procedure_path(@procedure)) } .procedure-list-element{ class: ('active' if active == 'Informations') } Informations @@ -18,30 +18,30 @@ .procedure-list-element{ class: ('active' if active == 'Accompagnateurs') } = t('dynamics.admin.procedure.onglets.accompagnateurs') - %a#onglet-description{ :href => "#{url_for edit_admin_procedure_path(@procedure)}" } + %a#onglet-description{ href: url_for(edit_admin_procedure_path(@procedure)) } .procedure-list-element{ class: ('active' if active == 'Description') } Description - if !@procedure.locked? - %a#onglet-champs{ :href => "#{url_for admin_procedure_types_de_champ_path(@procedure)}" } + %a#onglet-champs{ href: url_for(admin_procedure_types_de_champ_path(@procedure)) } .procedure-list-element{ class: ('active' if active == 'Champs') } Champs - if !@procedure.locked? - %a#onglet-pieces{ :href => "#{url_for admin_procedure_pieces_justificatives_path(@procedure)}" } + %a#onglet-pieces{ href: url_for(admin_procedure_pieces_justificatives_path(@procedure)) } .procedure-list-element{ class: ('active' if active == 'Pieces') } Pièces jointes - if !@procedure.locked? - %a#onglet-private-champs{ :href => "#{url_for admin_procedure_types_de_champ_private_path(@procedure)}" } + %a#onglet-private-champs{ href: url_for(admin_procedure_types_de_champ_private_path(@procedure)) } .procedure-list-element{ class: ('active' if active == 'Annotations privées') } Annotations privées - %a#onglet-inemailsfos{ :href => "#{url_for admin_procedure_mail_templates_path(@procedure)}" } + %a#onglet-inemailsfos{ href: url_for(admin_procedure_mail_templates_path(@procedure)) } .procedure-list-element{ class: ('active' if active == 'E-mails') } E-mails - %a#onglet-preview{ :href => "#{url_for admin_procedure_previsualisation_path(@procedure)}" } + %a#onglet-preview{ href: url_for(admin_procedure_previsualisation_path(@procedure)) } .procedure-list-element{ class: ('active' if active == 'Prévisualisation') } Prévisualisation