Fix template logic

This commit is contained in:
Jeremy Stretch 2020-03-17 11:28:35 -04:00
parent a2eb2e7da6
commit ec2dc8d7a4

View File

@ -3,13 +3,13 @@
{% block header %} {% block header %}
{{ block.super }} {{ block.super }}
{% if new_release and request.user.is_staff or request.user.is_superuser %} {% if new_release %}{% if request.user.is_staff or request.user.is_superuser %}
<div class="alert alert-info text-center" role="alert"> <div class="alert alert-info text-center" role="alert">
<i class="fa fa-info-circle"></i> <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 }}</a> |
<a href="https://netbox.readthedocs.io/en/stable/installation/upgrading/">Upgrade instructions</a> <a href="https://netbox.readthedocs.io/en/stable/installation/upgrading/">Upgrade instructions</a>
</div> </div>
{% endif %} {% endif %}{% endif %}
{% endblock %} {% endblock %}