tag.span instead of content_tag
This commit is contained in:
parent
2cb3b1c68e
commit
560e1fc4fe
3 changed files with 5 additions and 5 deletions
|
@ -75,7 +75,7 @@ module DossierHelper
|
|||
def status_badge(state)
|
||||
status_text = dossier_display_state(state, lower: true)
|
||||
status_class = state.tr('_', '-')
|
||||
content_tag(:span, status_text, class: "label #{status_class} ")
|
||||
tag.span(status_text, class: "label #{status_class} ")
|
||||
end
|
||||
|
||||
def deletion_reason_badge(reason)
|
||||
|
@ -87,7 +87,7 @@ module DossierHelper
|
|||
status_class = 'unknown'
|
||||
end
|
||||
|
||||
content_tag(:span, status_text, class: "label #{status_class} ")
|
||||
tag.span(status_text, class: "label #{status_class} ")
|
||||
end
|
||||
|
||||
def demandeur_dossier(dossier)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue