mirror of
https://github.com/minetest/contentdb.git
synced 2024-11-10 01:23:48 +01:00
Add link to Installing X on the package page
This commit is contained in:
parent
88a8e85b12
commit
7461acdd1f
@ -120,12 +120,26 @@
|
||||
</span>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="btn-group-horizontal col-md-auto">
|
||||
<div class="btn-group btn-group-horizontal col-md-auto">
|
||||
{% if release %}
|
||||
<a class="btn btn-download btn_green" rel="nofollow"
|
||||
<a class="btn btn-download" rel="nofollow"
|
||||
href="{{ package.getDownloadURL() }}">
|
||||
{{ _("Download") }}
|
||||
</a>
|
||||
{% if package.type == package.type.MOD %}
|
||||
{% set installing_url = "https://wiki.minetest.net/Installing_Mods" %}
|
||||
{% elif package.type == package.type.GAME %}
|
||||
{% set installing_url = "https://wiki.minetest.net/Games#Installing_games" %}
|
||||
{% elif package.type == package.type.TXP %}
|
||||
{% set installing_url = "https://wiki.minetest.net/Installing_Texture_Packs" %}
|
||||
{% else %}
|
||||
{{ 0 / 0 }}
|
||||
{% endif %}
|
||||
|
||||
|
||||
<a href="{{ installing_url }}" class="btn btn-download">
|
||||
<i class="fas fa-question-circle"></i>
|
||||
</a>
|
||||
{% else %}
|
||||
<i>
|
||||
{{ _("No downloads available") }}
|
||||
|
Loading…
Reference in New Issue
Block a user