NDOJ/templates/tabs-base.html

18 lines
530 B
HTML
Raw Permalink Normal View History

2020-01-21 06:35:58 +00:00
{% macro make_tab(name, fa, url, text) %}
2023-01-27 23:11:10 +00:00
<li class="tab{% if tab == name %} active{% endif %}">
{%- if url %}<a href="{{ url }}">{% else %}<span>{% endif -%}
<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>