Change how we format brouillon démarche label

This commit is contained in:
Paul Chavard 2018-09-18 14:10:15 +02:00
parent 2af0fe7c30
commit 9a338ec140

View file

@ -10,11 +10,9 @@ module ProcedureHelper
end
def procedure_libelle(procedure)
parts = [procedure.libelle]
if procedure.brouillon?
parts << '(brouillon)'
end
parts.join(' ')
parts = procedure.brouillon? ? [content_tag(:span, 'démarche non publiée', class: 'badge')] : []
parts << procedure.libelle
safe_join(parts, ' ')
end
def procedure_modal_text(procedure, key)