Unify class conditionals in the gestionnaire dossier header

This commit is contained in:
gregoirenovel 2017-08-28 10:54:14 +02:00 committed by Mathieu Magnin
parent 590c572106
commit 0eb7ea23cc

View file

@ -6,7 +6,7 @@
%li
= "Dossier n° #{dossier.id}"
%ul.tabs
%li{ class: ("active" if current_page?(dossier_path(dossier.procedure, dossier))) }
%li{ class: current_page?(dossier_path(dossier.procedure, dossier)) ? 'active' : nil }
= link_to "Demande", dossier_path(dossier.procedure, dossier)
%li{ class: current_page?(instruction_dossier_path(dossier.procedure, dossier)) ? 'active' : nil }
= link_to "Instruction", instruction_dossier_path(dossier.procedure, dossier)