mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-21 19:47:20 -06:00
Fix template logic
This commit is contained in:
parent
a2eb2e7da6
commit
ec2dc8d7a4
@ -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 %}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user