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

Fixes #8527: Fix display of changelog retention period

This commit is contained in:
jeremystretch
2022-02-03 09:48:21 -05:00
parent db3f478598
commit ff3b48fa59
3 changed files with 7 additions and 5 deletions

View File

@@ -11,7 +11,7 @@
</div>
</div>
<div class="text-muted">
Change log retention: {% if settings.CHANGELOG_RETENTION %}{{ settings.CHANGELOG_RETENTION }} days{% else %}Indefinite{% endif %}
Change log retention: {% if config.CHANGELOG_RETENTION %}{{ config.CHANGELOG_RETENTION }} days{% else %}Indefinite{% endif %}
</div>
</div>
</div>

View File

@@ -2,8 +2,9 @@
{% block title %}Change Log{% endblock %}
{% block sidebar %}
<div class="text-muted">
Change log retention: {% if settings.CHANGELOG_RETENTION %}{{ settings.CHANGELOG_RETENTION }} days{% else %}Indefinite{% endif %}
</div>
{% block content-wrapper %}
{{ block.super }}
<div class="text-muted px-3">
Change log retention: {% if config.CHANGELOG_RETENTION %}{{ config.CHANGELOG_RETENTION }} days{% else %}Indefinite{% endif %}
</div>
{% endblock %}