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

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

@@ -62,7 +62,7 @@
{% url journal_viewname pk=object.pk as journal_url %}
{% if journal_url %}
<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>
{% endif %}
{% endwith %}