Add changelog tabs for power panel, power feed & clean up nav links

This commit is contained in:
Jeremy Stretch
2019-04-12 10:16:34 -04:00
parent 78c90ba24b
commit 067c788df7
4 changed files with 45 additions and 26 deletions

View File

@@ -45,6 +45,16 @@
</div>
<h1>{% block title %}{{ powerfeed }}{% endblock %}</h1>
{% include 'inc/created_updated.html' with obj=powerfeed %}
<ul class="nav nav-tabs">
<li role="presentation"{% if not active_tab %} class="active"{% endif %}>
<a href="{{ powerfeed.get_absolute_url }}">Cable</a>
</li>
{% if perms.extras.view_objectchange %}
<li role="presentation"{% if active_tab == 'changelog' %} class="active"{% endif %}>
<a href="{% url 'dcim:powerfeed_changelog' pk=powerfeed.pk %}">Changelog</a>
</li>
{% endif %}
</ul>
{% endblock %}
{% block content %}