mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-03-04 01:11:15 -05:00
Converts links in the following: - the page-footer component - the table component - the browse-list component - the notification status, when reporting failures - validation messaging in the whitelist page
21 lines
653 B
HTML
21 lines
653 B
HTML
{% macro browse_list(items) %}
|
|
{% if items %}
|
|
<nav class="browse-list">
|
|
<ul>
|
|
{% for item in items %}
|
|
{% if item.title and item.link %}
|
|
<li class="browse-list-item">
|
|
<a href="{{ item.link }}" class="govuk-link govuk-link--{% if item.destructive %}--destructive{% else %}--no-visited-state{% endif %}">{{ item.title }}</a>
|
|
{% if item.hint %}
|
|
<div class="browse-list-hint">
|
|
{{ item.hint }}
|
|
</div>
|
|
{% endif %}
|
|
</li>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</ul>
|
|
</nav>
|
|
{% endif %}
|
|
{% endmacro %}
|