Merge pull request #2608 from tchak/fix-demarche-brouillon-label

Change how we format brouillon démarche label
This commit is contained in:
gregoirenovel 2018-09-19 11:36:06 +02:00 committed by GitHub
commit cceb88539d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)