Using translations instead of hardcoded

This commit is contained in:
Julie Lenaerts 2022-01-14 14:37:50 +01:00
parent 8d3ba314e0
commit bb0a04b19a
3 changed files with 3 additions and 7 deletions

View File

@ -184,10 +184,6 @@ div[class*='activity-'] {
background-color: $chill-ll-gray; background-color: $chill-ll-gray;
color: $chill-blue; color: $chill-blue;
} }
&.bg-urgent {
background-color: $chill-red;
color: white;
}
&.bg-confidential { &.bg-confidential {
background-color: $chill-ll-gray; background-color: $chill-ll-gray;
color: $chill-red; color: $chill-red;

View File

@ -11,7 +11,7 @@
<span class="badge rounded-pill bg-danger">{{- 'Emergency'|trans|upper -}}</span> <span class="badge rounded-pill bg-danger">{{- 'Emergency'|trans|upper -}}</span>
{% endif %} {% endif %}
{% if period.confidential %} {% if period.confidential %}
<span class="badge rounded-pill bg-danger">{{- 'Confidential'|trans|upper -}}</span> <span class="badge rounded-pill bg-confidential">{{- 'Confidential'|trans|upper -}}</span>
{% endif %} {% endif %}
</div> </div>
<div class="wh-col"> <div class="wh-col">

View File

@ -82,10 +82,10 @@
<div class="wl-col title"> <div class="wl-col title">
<div> <div>
{% if acp.emergency %} {% if acp.emergency %}
<span class="badge rounded-pill bg-urgent">urgent</span> <span class="badge rounded-pill bg-danger">{{- 'Emergency'|trans|upper -}}</span>
{% endif %} {% endif %}
{% if acp.confidential %} {% if acp.confidential %}
<span class="badge rounded-pill bg-confidential">confidentiel</span> <span class="badge rounded-pill bg-confidential">{{- 'Confidential'|trans|upper -}}</span>
{% endif %} {% endif %}
</div> </div>
{% if acp.step == 'DRAFT' %} {% if acp.step == 'DRAFT' %}