mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-13 06:54:20 -05:00
Includes: - turning off :visited styles to match existing design - swapping heading classes used to make links bold for the GOVUK Frontend bold override class - adding visually hidden text to some links to make them work when isolated from their context We may need to revisit whether some links, such as those for documentation and features, may benefit from having some indication that their target has been visited.
16 lines
490 B
HTML
16 lines
490 B
HTML
{% macro status_box(number, label, failing=false, percentage=None, url=None) %}
|
|
<div class="big-number-with-status">
|
|
<div class="big-number-status{% if failing %}-failing{% endif %}">
|
|
{% if url %}
|
|
<a class="govuk-link govuk-link--no-visited-state" href="{{ url }}">{{ number }} {{ label }}</a>
|
|
{% else %}
|
|
{{ number }} {{ label }}
|
|
{% endif %}
|
|
|
|
{% if percentage %}
|
|
- {{ percentage }}%
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endmacro %}
|