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

Cleaned up new release notification banner

This commit is contained in:
Jeremy Stretch
2020-03-13 12:20:00 -04:00
parent 2033d15b2f
commit 9e45cafac4

View File

@ -3,12 +3,11 @@
{% block header %}
{{ block.super }}
{% if new_release %}
<div class="alert alert-info" role="alert">
A new release is available:
{% if new_release_url %}<a target="_blank" href="{{ new_release_url }}">{% endif %}
NetBox v{{ new_release }}
{% if latest_version_url %}</a>{% endif %}
{% if new_release and request.user.is_staff or request.user.is_superuser %}
<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 href="https://netbox.readthedocs.io/en/stable/installation/upgrading/">Upgrade instructions</a>
</div>
{% endif %}
{% endblock %}