@ministryofjustice/hmpps-mpop-frontend-components-lib 0.0.32 → 0.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -39,13 +39,12 @@
|
|
|
39
39
|
</li>
|
|
40
40
|
|
|
41
41
|
<li>
|
|
42
|
-
<span class='govuk-!-font-weight-bold'>Tier:</span>
|
|
43
42
|
<a
|
|
44
43
|
class='govuk-link govuk-link--inverse'
|
|
45
44
|
href='{{ params.historyHref }}'
|
|
46
45
|
data-qa='tier'
|
|
47
46
|
>
|
|
48
|
-
{{ params.tier }}
|
|
47
|
+
<span class='govuk-!-font-weight-bold'>Tier:</span> {{ params.tier }}
|
|
49
48
|
</a>
|
|
50
49
|
</li>
|
|
51
50
|
|
|
@@ -116,7 +115,17 @@
|
|
|
116
115
|
class='govuk-link govuk-link--no-underline govuk-link--text-colour dps-alert-status dps-alert-status--risk {{ risk.badgeClass }}'
|
|
117
116
|
data-qa='risk-badge-{{ risk.id }}'
|
|
118
117
|
>
|
|
119
|
-
{
|
|
118
|
+
{% if risk.text | replace(' - Very High', '') != risk.text %}
|
|
119
|
+
{{ risk.text | replace(' - Very High', ' - <strong>Very High</strong>') | safe }}
|
|
120
|
+
{% elif risk.text | replace(' - High', '') != risk.text %}
|
|
121
|
+
{{ risk.text | replace(' - High', ' - <strong>High</strong>') | safe }}
|
|
122
|
+
{% elif risk.text | replace(' - Medium', '') != risk.text %}
|
|
123
|
+
{{ risk.text | replace(' - Medium', ' - <strong>Medium</strong>') | safe }}
|
|
124
|
+
{% elif risk.text | replace(' - Low', '') != risk.text %}
|
|
125
|
+
{{ risk.text | replace(' - Low', ' - <strong>Low</strong>') | safe }}
|
|
126
|
+
{% else %}
|
|
127
|
+
{{ risk.text }}
|
|
128
|
+
{% endif %}
|
|
120
129
|
</a>
|
|
121
130
|
{% endfor %}
|
|
122
131
|
{% endfor %}
|