mirror of https://github.com/Aidaho12/haproxy-wi
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
837 B
17 lines
837 B
4 years ago
|
{% if versions is defined %}
|
||
|
{% set current_ver = versions.0 %}
|
||
|
{% set new_ver = versions.1 %}
|
||
|
{% set current_ver_without_dots = versions.2 %}
|
||
|
{% set new_ver_without_dots = versions.3 %}
|
||
|
{% endif %}
|
||
|
{% if new_ver_without_dots is defined and current_ver_without_dots is defined and new_ver is defined and new_ver_without_dots is defined %}
|
||
|
<a style="color: #000; cursor: pointer;">
|
||
|
{% if new_ver_without_dots > current_ver_without_dots and new_ver != "Sorry cannot get current version" %}
|
||
|
<span id="show-updates-button" class="new-version-exists">v{{current_ver}} </span>
|
||
|
{% else %}
|
||
|
<a href="/app/users.py#updatehapwi" title="Update center" style="color: black;">v{{current_ver}}</a>
|
||
|
{% endif %}
|
||
|
</a>
|
||
|
{% else %}
|
||
|
<a href="/app/users.py#updatehapwi" title="Update center" style="color: black;">v{{current_ver}}</a>
|
||
|
{% endif %}
|