Only show Pre-Release when available

This commit is contained in:
AaronKable 2020-06-08 20:47:05 +08:00
parent e928131809
commit c75de07c2e

View File

@ -46,20 +46,18 @@
{% if not latest_patch %}<br>{% trans "Update available" %}{% endif %}
</p>
</li>
<li class="list-group-item {% if latest_beta %}list-group-item-info{% endif %}">
{% if latest_beta %}
<li class="list-group-item list-group-item-info">
<h5 class="list-group-item-heading">{% trans "Latest Pre-Release" %}</h5>
<p class="list-group-item-text">
{% if latest_beta %}
<a href="https://gitlab.com/allianceauth/allianceauth/tags" style="color:#000">
<i class="fa fa-gitlab hidden-xs" aria-hidden="true"></i>
{{ latest_beta_version }}
</a>
{% if not latest_patch %}<br>{% trans "Pre-Release available" %}{% endif %}
{% else %}
{% trans "No Current Pre-Release" %}
{% endif %}
<br>{% trans "Pre-Release available" %}
</p>
</li>
{% endif %}
</ul>
</div>
</div>