Cloned DMOJ
This commit is contained in:
parent
f623974b58
commit
49dc9ff10c
513 changed files with 132349 additions and 39 deletions
18
templates/tabs-base.html
Normal file
18
templates/tabs-base.html
Normal file
|
@ -0,0 +1,18 @@
|
|||
{% macro make_tab(name, fa, url, text) %}
|
||||
<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>
|
||||
{% endmacro %}
|
||||
|
||||
<div class="page-title">
|
||||
<div class="tabs">
|
||||
<h2>{{ content_title or title }}</h2>
|
||||
<span class="spacer"></span>
|
||||
{% block post_tab_spacer %}{% endblock %}
|
||||
<ul>
|
||||
{% block tabs %}{% endblock %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue