bootstrap 5 template updates

This commit is contained in:
checktheroads
2021-03-13 11:16:29 -07:00
parent 9c24163fd7
commit ea27cf791f
14 changed files with 485 additions and 321 deletions

View File

@@ -35,21 +35,23 @@
</div>
{% endblock %}
{% block content %}
{% block tabs %}
<ul class="nav nav-tabs">
<ul class="nav nav-tabs mb-3">
{% block tab_items %}
<li role="presentation"{% if not active_tab %} class="active"{% endif %}>
<a href="{{ object.get_absolute_url }}">{{ object|meta:"verbose_name"|bettertitle }}</a>
</li>
{% if perms.extras.view_objectchange %}
<li role="presentation"{% if active_tab == 'changelog' %} class="active"{% endif %}>
{# TODO: Fix changelog URL resolution hack #}
<a href="{{ object.get_absolute_url }}changelog/">Change Log</a>
</li>
<li role="presentation"{% if active_tab == 'changelog' %} class="active"{% endif %}>
{# TODO: Fix changelog URL resolution hack #}
<a href="{{ object.get_absolute_url }}changelog/">Change Log</a>
</li>
{% endif %}
{% endblock %}
</ul>
{% endblock %}
{% endblock %}
{% block content %}{% endblock %}
{% block header %}
<div class="row noprint">