Closes #7042: Show count of journal entries in tab under object view

This commit is contained in:
jeremystretch 2021-08-27 10:36:06 -04:00
parent bb57600f0f
commit 13e633778a
2 changed files with 5 additions and 1 deletions

View File

@ -2,6 +2,10 @@
## v2.11.13 (FUTURE) ## v2.11.13 (FUTURE)
### Enhancements
* [#7042](https://github.com/netbox-community/netbox/issues/7042) - Show count of journal entries in tab under object view
### Bug Fixes ### Bug Fixes
* [#7019](https://github.com/netbox-community/netbox/issues/7019) - Enable searching VM interfaces by description * [#7019](https://github.com/netbox-community/netbox/issues/7019) - Enable searching VM interfaces by description

View File

@ -62,7 +62,7 @@
{% 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"{% if active_tab == 'journal' %} class="active"{% endif %}> <li role="presentation"{% if active_tab == 'journal' %} class="active"{% endif %}>
<a href="{{ journal_url }}">Journal</a> <a href="{{ journal_url }}">Journal {% badge object.journal_entries.count %}</a>
</li> </li>
{% endif %} {% endif %}
{% endwith %} {% endwith %}