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