mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-27 13:51:12 -05:00
* Updated header and footer * Moved files around and updated gulpfile to correct the build process when it goes to production * Updated fonts * Adjusted grid templating * Adding images to assets * Updated account pages, dashboard, and pages in message sending flow * Updated the styling for the landing pages in the account section once logged in
28 lines
994 B
HTML
28 lines
994 B
HTML
{% from 'components/big-number.html' import big_number %}
|
|
|
|
{% macro pill(
|
|
items=[],
|
|
current_value=None,
|
|
big_number_args={'smaller': True},
|
|
show_count=True
|
|
) %}
|
|
<nav aria-labelledby='page-header'>
|
|
<ul class='pill'>
|
|
{% for label, option, link, count in items %}
|
|
<li class="pill-item__container">
|
|
{% if current_value == option %}
|
|
<a id="pill-selected-item" class="pill-item pill-item--selected usa-link {% if not show_count %} pill-item--centered{% endif %}" href="{{ link }}" aria-current="page">
|
|
{% else %}
|
|
<a class="pill-item usa-dark-background usa-link usa-link--alt bg-primary" href="{{ link }}">
|
|
{% endif %}
|
|
{% if show_count %}
|
|
{{ big_number(count, **big_number_args) }}
|
|
{% endif %}
|
|
<div class="pill-item__label{% if not show_count %} pill-item--centered{% endif %}">{{ label | safe }}</div>
|
|
</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</nav>
|
|
{% endmacro %}
|