mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-08 22:17:34 +01:00
Add version information to package page
This commit is contained in:
parent
7810bb54e0
commit
d36138d5e1
@ -112,11 +112,22 @@
|
||||
{% endif %}
|
||||
|
||||
<aside class="float-right ml-4" style="width: 18rem;">
|
||||
{% if package.getDownloadRelease() %}
|
||||
{% set release = package.getDownloadRelease() %}
|
||||
{% if release %}
|
||||
<a class="btn btn-download btn-lg btn-block" rel="nofollow"
|
||||
href="{{ package.getDownloadURL() }}" class="btn_green">
|
||||
Download
|
||||
</a>
|
||||
|
||||
<p class="text-center m-2" style="font-size: 80%;">
|
||||
{% if release.min_rel and release.max_rel %}
|
||||
Minetest {{ release.min_rel.name }} - {{ release.max_rel.name }}
|
||||
{% elif release.min_rel %}
|
||||
Supports Minetest {{ release.min_rel.name }} and above.
|
||||
{% elif release.max_rel %}
|
||||
Supports Minetest {{ release.max_rel.name }} and below.
|
||||
{% endif %}
|
||||
</p>
|
||||
{% else %}
|
||||
No download available.
|
||||
{% endif %}
|
||||
@ -261,9 +272,27 @@
|
||||
|
||||
{% if not rel.approved %}<i>{% endif %}
|
||||
|
||||
<a href="{{ rel.getDownloadURL() }}" rel="nofollow">{{ rel.title }}</a>{% if rel.commit_hash %}
|
||||
[{{ rel.commit_hash | truncate(5, end='') }}]{% endif %}<br>
|
||||
<small>created {{ rel.releaseDate | datetime }}.</small>
|
||||
<a href="{{ rel.getDownloadURL() }}" rel="nofollow">{{ rel.title }}</a>
|
||||
|
||||
<span style="color:#ddd;">
|
||||
{% if rel.min_rel and rel.max_rel %}
|
||||
[MT {{ rel.min_rel.name }}-{{ rel.max_rel.name }}]
|
||||
{% elif rel.min_rel %}
|
||||
[MT {{ rel.min_rel.name }}+]
|
||||
{% elif rel.max_rel %}
|
||||
[MT ≤{{ rel.max_rel.name }}]
|
||||
{% endif %}
|
||||
</span>
|
||||
|
||||
<br>
|
||||
|
||||
<small style="color:#999;">
|
||||
{% if rel.commit_hash %}
|
||||
[{{ rel.commit_hash | truncate(5, end='') }}]
|
||||
{% endif %}
|
||||
|
||||
created {{ rel.releaseDate | date }}.
|
||||
</small>
|
||||
{% if (package.checkPerm(current_user, "MAKE_RELEASE") or package.checkPerm(current_user, "APPROVE_RELEASE")) and rel.task_id %}
|
||||
<a href="{{ url_for('check_task', id=rel.task_id, r=package.getDetailsURL()) }}">Importing...</a>
|
||||
{% elif not rel.approved %}
|
||||
|
Loading…
Reference in New Issue
Block a user