NDOJ/templates/tabs-base.html

18 lines
609 B
HTML
Raw Permalink Normal View History

2024-06-24 19:56:00 +00:00
{% macro make_tab(name, fa, url, text, force_new_page=False) %}
2023-01-27 23:11:10 +00:00
<li class="tab{% if tab == name %} active{% endif %}">
2024-06-24 19:56:00 +00:00
{%- if url %}<a href="{{ url }}" {% if force_new_page%}data-force_new_page="1"{% endif %}>{% else %}<span>{% endif -%}
2023-01-27 23:11:10 +00:00
<i class="tab-icon fa {{ fa }}"></i> {{ text }}
{%- if url %}</a>{% else %}</span>{% endif -%}
</li>
2020-01-21 06:35:58 +00:00
{% endmacro %}
<div class="page-title">
2023-01-27 23:11:10 +00:00
<div class="tabs">
<h2>{{ content_title or title }}</h2>
<span class="spacer"></span>
{% block post_tab_spacer %}{% endblock %}
<ul>
{% block tabs %}{% endblock %}
</ul>
</div>
2020-01-21 06:35:58 +00:00
</div>