tag.span instead of content_tag

This commit is contained in:
clemkeirua 2020-09-24 15:14:48 +02:00 committed by Keirua (Rebase PR Action)
parent 2cb3b1c68e
commit 560e1fc4fe
3 changed files with 5 additions and 5 deletions

View file

@ -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)