Переглянути джерело

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

jeremystretch 4 роки тому
батько
коміт
13e633778a

+ 4 - 0
docs/release-notes/version-2.11.md

@@ -2,6 +2,10 @@
 
 ## 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
 
 * [#7019](https://github.com/netbox-community/netbox/issues/7019) - Enable searching VM interfaces by description

+ 1 - 1
netbox/templates/generic/object.html

@@ -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 %}