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

Tweak release template variables

This commit is contained in:
Jeremy Stretch
2020-03-17 11:49:45 -04:00
parent ab93606e4a
commit 356de985d2
2 changed files with 10 additions and 10 deletions

View File

@ -3,13 +3,14 @@
{% block header %}
{{ block.super }}
{% if new_release %}{% if request.user.is_staff or request.user.is_superuser %}
{% if new_release %}
{# new_release is set only if the current user is a superuser or staff member #}
<div class="alert alert-info text-center" role="alert">
<i class="fa fa-info-circle"></i>
A new release is available: <a href="{{ new_release_url }}">NetBox v{{ new_release }}</a> |
A new release is available: <a href="{{ new_release.url }}">NetBox v{{ new_release.version }}</a> |
<a href="https://netbox.readthedocs.io/en/stable/installation/upgrading/">Upgrade instructions</a>
</div>
{% endif %}{% endif %}
{% endif %}
{% endblock %}