Merge pull request #4366 from netbox-community/738-detect-new-releases

Closes #738: Automatically detect new releases
This commit is contained in:
Jeremy Stretch
2020-03-18 14:00:01 -04:00
committed by GitHub
11 changed files with 407 additions and 52 deletions

View File

@@ -1,6 +1,19 @@
{% extends '_base.html' %}
{% load helpers %}
{% block header %}
{{ block.super }}
{% 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.version }}</a> |
<a href="https://netbox.readthedocs.io/en/stable/installation/upgrading/">Upgrade instructions</a>
</div>
{% endif %}
{% endblock %}
{% block content %}
{% include 'search_form.html' %}
<div class="row">