From 7461acdd1f77515f6432e3366f13559300c38672 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Fri, 29 Jan 2021 16:27:38 +0000 Subject: [PATCH] Add link to Installing X on the package page --- app/templates/packages/view.html | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/app/templates/packages/view.html b/app/templates/packages/view.html index 4d8397cf..be3cf595 100644 --- a/app/templates/packages/view.html +++ b/app/templates/packages/view.html @@ -120,12 +120,26 @@ {% endif %} -
+
{% if release %} - {{ _("Download") }} + {% 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 %} + + + + + {% else %} {{ _("No downloads available") }}