mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-09 14:37:36 +01:00
Fix crash on packages with no releases
This commit is contained in:
parent
9dfb95a524
commit
7dbea9f042
@ -93,11 +93,13 @@
|
|||||||
{{ package.author.display_name }}
|
{{ package.author.display_name }}
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
|
{% if release %}
|
||||||
<a class="btn" rel="nofollow" href="{{ package.getDownloadURL() }}" title="{{ _("Downloads") }}"
|
<a class="btn" rel="nofollow" href="{{ package.getDownloadURL() }}" title="{{ _("Downloads") }}"
|
||||||
download="{{ release.getDownloadFileName() }}">
|
download="{{ release.getDownloadFileName() }}">
|
||||||
<i class="fas fa-download"></i>
|
<i class="fas fa-download"></i>
|
||||||
<span class="count">{{ package.downloads }}</span>
|
<span class="count">{{ package.downloads }}</span>
|
||||||
</a>
|
</a>
|
||||||
|
{% endif %}
|
||||||
<a class="btn" href="{{ url_for('threads.list_all', pid=package.id) }}" title="{{ _("Threads") }}">
|
<a class="btn" href="{{ url_for('threads.list_all', pid=package.id) }}" title="{{ _("Threads") }}">
|
||||||
<i class="fas fa-comment-alt"></i>
|
<i class="fas fa-comment-alt"></i>
|
||||||
<span class="count">{{ threads | length }}</span>
|
<span class="count">{{ threads | length }}</span>
|
||||||
|
Loading…
Reference in New Issue
Block a user