mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-23 11:51:05 -05:00
Means you can see, for example emails that have failed. Means adding: - logic to generate links which can have a type parameter, a status parameter, or both - a ‘pill’ UI component for seeing which filters you currently have applied - some logic to change the page title based on which filters you have applied
16 lines
454 B
HTML
16 lines
454 B
HTML
{% macro pill(
|
|
title,
|
|
items=[],
|
|
current_value=None
|
|
) %}
|
|
<nav role='navigation' class='pill' aria-labelledby="pill_{{title}}">
|
|
<h2 id="pill_{{title}}" class="visuallyhidden">{{title}}</h2>
|
|
{% for label, option, link in items %}
|
|
{% if current_value == option %}
|
|
<span aria-hidden="true">{{ label }}</span>
|
|
{% else %}
|
|
<a href="{{ link }}">{{ label }}</a>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</nav>
|
|
{% endmacro %} |