Merge pull request #9842 from demarches-simplifiees/improve-color-for-new-release-ldu
Améliorer l'affichage des couleurs pour la page nouveautés
This commit is contained in:
commit
e17bfcd633
1 changed files with 5 additions and 5 deletions
|
@ -2,15 +2,15 @@ module ReleaseNotesHelper
|
||||||
def announce_category_badge(category)
|
def announce_category_badge(category)
|
||||||
color_class = case category.to_sym
|
color_class = case category.to_sym
|
||||||
when :administrateur
|
when :administrateur
|
||||||
'fr-background-flat--blue-france fr-text-inverted--blue-france'
|
'fr-badge--blue-cumulus'
|
||||||
when :instructeur
|
when :instructeur
|
||||||
'fr-background-contrast--yellow-tournesol'
|
'fr-badge--yellow-tournesol'
|
||||||
when :expert
|
when :expert
|
||||||
'fr-background-contrast--purple-glycine'
|
'fr-badge--purple-glycine'
|
||||||
when :usager
|
when :usager
|
||||||
'fr-background-contrast--green-emeraude'
|
'fr-badge--green-emeraude'
|
||||||
when :api
|
when :api
|
||||||
'fr-background-contrast--blue-ecume'
|
'fr-badge--pink-macaron'
|
||||||
end
|
end
|
||||||
|
|
||||||
content_tag(:span, ReleaseNote.human_attribute_name("categories.#{category}"), class: "fr-badge #{color_class}")
|
content_tag(:span, ReleaseNote.human_attribute_name("categories.#{category}"), class: "fr-badge #{color_class}")
|
||||||
|
|
Loading…
Reference in a new issue