mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-23 04:22:01 -06:00
Fixes #6953: Remove change log tab from non-applicable object views
This commit is contained in:
parent
1b074d2d53
commit
dcd49fd97b
@ -15,6 +15,7 @@
|
|||||||
* [#6846](https://github.com/netbox-community/netbox/issues/6846) - Form-driven REST API calls should use brief mode
|
* [#6846](https://github.com/netbox-community/netbox/issues/6846) - Form-driven REST API calls should use brief mode
|
||||||
* [#6871](https://github.com/netbox-community/netbox/issues/6871) - Support dynamic tag types in GraphQL API
|
* [#6871](https://github.com/netbox-community/netbox/issues/6871) - Support dynamic tag types in GraphQL API
|
||||||
* [#6894](https://github.com/netbox-community/netbox/issues/6894) - Fix available IP generation for prefix assigned to a VRF
|
* [#6894](https://github.com/netbox-community/netbox/issues/6894) - Fix available IP generation for prefix assigned to a VRF
|
||||||
|
* [#6953](https://github.com/netbox-community/netbox/issues/6953) - Remove change log tab from non-applicable object views
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -62,20 +62,22 @@
|
|||||||
{% endblock tab_items %}
|
{% endblock tab_items %}
|
||||||
{% if perms.extras.view_journalentry %}
|
{% if perms.extras.view_journalentry %}
|
||||||
{% with journal_viewname=object|viewname:'journal' %}
|
{% with journal_viewname=object|viewname:'journal' %}
|
||||||
{% url journal_viewname pk=object.pk as journal_url %}
|
{% url journal_viewname pk=object.pk as journal_url %}
|
||||||
{% if journal_url %}
|
{% if journal_url %}
|
||||||
<li role="presentation" class="nav-item">
|
<li role="presentation" class="nav-item">
|
||||||
<a href="{{ journal_url }}" class="nav-link{% if active_tab == 'journal'%} active{% endif %}">Journal</a>
|
<a href="{{ journal_url }}" class="nav-link{% if active_tab == 'journal'%} active{% endif %}">Journal</a>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if perms.extras.view_objectchange %}
|
{% if perms.extras.view_objectchange %}
|
||||||
{% with changelog_viewname=object|viewname:'changelog' %}
|
{% with changelog_viewname=object|viewname:'changelog' %}
|
||||||
{% url changelog_viewname pk=object.pk as changelog_url %}
|
{% url changelog_viewname pk=object.pk as changelog_url %}
|
||||||
<li role="presentation" class="nav-item">
|
{% if changelog_url %}
|
||||||
<a href="{{ changelog_url }}" class="nav-link{% if active_tab == 'changelog'%} active{% endif %}">Change Log</a>
|
<li role="presentation" class="nav-item">
|
||||||
</li>
|
<a href="{{ changelog_url }}" class="nav-link{% if active_tab == 'changelog'%} active{% endif %}">Change Log</a>
|
||||||
|
</li>
|
||||||
|
{% endif %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
|
Loading…
Reference in New Issue
Block a user