Merge pull request #2608 from tchak/fix-demarche-brouillon-label
Change how we format brouillon démarche label
This commit is contained in:
commit
cceb88539d
1 changed files with 3 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue