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

Automatically check for new versions

This commit is contained in:
Sander Steffann
2020-01-24 00:15:32 +01:00
parent faf676e6e0
commit 2fcdc90d3f
6 changed files with 94 additions and 1 deletions

View File

@@ -50,7 +50,16 @@
<div class="container">
<div class="row">
<div class="col-xs-4">
<p class="text-muted">{{ settings.HOSTNAME }} (v{{ settings.VERSION }})</p>
<p class="text-muted">
{{ settings.HOSTNAME }} (v{{ settings.VERSION }})
{% if latest_version %}
{% if latest_version_url %}<a target="_blank" href="{{ latest_version_url }}">{% endif %}
<span class="label label-default" style="color: #ffffff; background-color: #ff9800">
New version: {{ latest_version }}
</span>
{% if latest_version_url %}</a>{% endif %}
{% endif %}
</p>
</div>
<div class="col-xs-4 text-center">
<p class="text-muted">{% now 'Y-m-d H:i:s T' %}</p>