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