1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

bootstrap 5 template updates

This commit is contained in:
checktheroads
2021-03-13 11:16:29 -07:00
parent 912cd220cc
commit 4c60a602b9
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">