{% set query=package.name %} {% extends "base.html" %} {% block title %} {{ package.title }} {% endblock %} {% block headextra %} {% if package.getMainScreenshotURL() %} {% endif %} {% endblock %} {% block container %} {% if not package.license.is_foss and not package.media_license.is_foss and package.type != package.type.TXP %} {% set package_warning="Non-free code and media" %} {% elif not package.license.is_foss and package.type != package.type.TXP %} {% set package_warning="Non-free code" %} {% elif not package.media_license.is_foss %} {% set package_warning="Non-free media" %} {% endif %} {% set release = package.getDownloadRelease() %}
{% set cover_image = package.cover_image.url or package.getMainScreenshotURL() %}
{% if package.checkPerm(current_user, "EDIT_PACKAGE") %} {{ _("Edit") }} {% endif %} {% if package.checkPerm(current_user, "MAKE_RELEASE") %} {{ _("Release") }} {% endif %} {% if package.checkPerm(current_user, "DELETE_PACKAGE") or package.checkPerm(current_user, "UNAPPROVE_PACKAGE") %} {{ _("Remove") }} {% endif %}

{{ package.title }}

{{ package.short_desc }}

{% if package_warning %} {{ package_warning }} {% endif %} {% for warning in package.content_warnings %} {{ warning.title }} {% endfor %} {% for t in package.tags %} {{ t.title }} {% endfor %}

{% if release and (release.min_rel or release.max_rel) %}
{% if release.min_rel and release.max_rel %} {{ _("%(min)s - %(max)s", min=release.min_rel.name, max=release.max_rel.name) }} {% elif release.min_rel %} {{ _("%(min)s and above", min=release.min_rel.name) }} {% elif release.max_rel %} {{ _("%(max)s and below", max=release.max_rel.name) }} {% endif %}
{% 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") }} {% endif %}
{% if not package.approved %}
{% from "macros/package_approval.html" import render_banners %} {{ render_banners(package, current_user, topic_error, topic_error_lvl, similar_topics) }} {% if review_thread and review_thread.checkPerm(current_user, "SEE_THREAD") %}

{% if review_thread.private %}🔒{% endif %} {{ review_thread.title }}

{% if review_thread.private %}

This thread is only visible to the package owner and users of Editor rank or above.

{% endif %} {% from "macros/threads.html" import render_thread %} {{ render_thread(review_thread, current_user) }} {% endif %}
{% endif %}
{% set screenshots = package.screenshots.all() %} {% if screenshots or package.checkPerm(current_user, "ADD_SCREENSHOTS") %} {% if package.checkPerm(current_user, "ADD_SCREENSHOTS") %} Edit {% endif %} {% endif %} {% if package.desc %}
{{ package.desc | markdown }}
{% endif %}

{{ _("Reviews") }}

{% from "macros/reviews.html" import render_reviews, render_review_form, render_review_preview %} {% if current_user.is_authenticated %} {% if has_review %}

{{ _("Edit Review") }}

{% elif current_user in package.maintainers %}

{{ _("You can't review your own package.") }}

{% else %} {{ render_review_preview(package) }} {% endif %} {% else %} {{ render_review_preview(package) }} {% endif %} {{ render_reviews(package.reviews, current_user) }} {% if alternatives %}

Related

{% from "macros/packagegridtile.html" import render_pkggrid %} {{ render_pkggrid(alternatives) }} {% endif %} {% if similar_topics %}

Similar Forum Topics

{% endif %} {% if package.checkPerm(current_user, "EDIT_PACKAGE") %}

Badges

{{ package.makeShield("title") | markdown }}

{{ package.makeShield("title") }}

{{ package.makeShield("downloads") | markdown }}

{{ package.makeShield("downloads") }}

{% endif %}
{% endblock %}