tag.span instead of content_tag
This commit is contained in:
parent
2cb3b1c68e
commit
560e1fc4fe
3 changed files with 5 additions and 5 deletions
|
@ -8,7 +8,7 @@ module ProcedureHelper
|
|||
end
|
||||
|
||||
def procedure_libelle(procedure)
|
||||
parts = procedure.brouillon? ? [content_tag(:span, 'démarche en test', class: 'badge')] : []
|
||||
parts = procedure.brouillon? ? [tag.span('démarche en test', class: 'badge')] : []
|
||||
parts << procedure.libelle
|
||||
safe_join(parts, ' ')
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue