1 {% extends "base.html" %}
8 {% if not package.approved %}
9 <div class="box box_grey alert alert-warning">
10 <span class="icon_message"></span>
11 {% if package.releases.count() == 0 %}
12 {% if package.checkPerm(current_user, "MAKE_RELEASE") %}
13 You need to create a release before this package can be approved.
15 A release is a single downloadable version of your {{ package.type.value | lower }}.
16 You need to create releases even if you use a rolling release development cycle,
17 as Minetest needs them to check for updates.
19 <a class="button" href="{{ package.getCreateReleaseURL() }}">Create Release</a>
21 A release is required before this package can be approved.
24 {% elif (package.type == package.type.GAME or package.type == package.type.TXP) and package.screenshots.count() == 0 %}
25 You need to add at least one screenshot.
27 {% elif topic_error_lvl == "error" %}
28 Please fix the below topic issue(s).
31 {% if package.screenshots.count() == 0 %}
32 <b>You should add at least one screenshot, but this isn't required.</b><br />
35 {% if not package.getDownloadRelease() %}
36 Please wait for the release to be approved.
37 {% elif package.checkPerm(current_user, "APPROVE_NEW") %}
38 You can now approve this package if you're ready.
39 <form method="post" action="{{ package.getApproveURL() }}">
40 <input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
41 <input type="submit" value="Approve" />
44 Please wait for the package to be approved.
47 <div style="clear: both;"></div>
51 <div class="box box_grey alert alert-{{ topic_error_lvl }}">
52 <span class="icon_message"></span>
53 {{ topic_error | safe }}
54 <div style="clear: both;"></div>
58 {% if package.author == current_user or package.checkPerm(current_user, "APPROVE_NEW") %}
59 {% if review_thread %}
60 <h2>🔒 {{ review_thread.title }}</h2>
62 This thread is only visible to the package owner and users of
66 {% from "macros/threads.html" import render_thread %}
67 {{ render_thread(review_thread, current_user) }}
69 <div class="box box_grey alert alert-info">
70 Privately ask a question or give feedback
72 <a class="alert_right button" href="{{ url_for('new_thread_page', pid=package.id, title='Package approval comments') }}">Open Thread</a>
78 <h1>{{ package.title }} by {{ package.author.display_name }}</h1>
80 <ul class="screenshot_list">
81 {% for ss in package.screenshots %}
82 {% if ss.approved or package.checkPerm(current_user, "ADD_SCREENSHOTS") %}
84 <a href="{% if package.checkPerm(current_user, 'ADD_SCREENSHOTS') %}{{ ss.getEditURL() }}{% else %}{{ ss.url }}{% endif %}">
85 <img src="{{ ss.getThumbnailURL() }}" alt="{{ ss.title }}" />
92 <aside class="asideright box box_grey">
95 <div class="box-body">
96 {% if not package.license.is_foss and not package.media_license.is_foss and package.type != package.type.TXP %}
97 <div class="box box_grey alert alert-error" style="margin-top: 0;">
98 <b>Warning:</b> Non-free code and media.
100 {% elif not package.license.is_foss and package.type != package.type.TXP %}
101 <div class="box box_grey alert alert-error" style="margin-top: 0;">
102 <b>Warning:</b> Non-free code.
104 {% elif not package.media_license.is_foss %}
105 <div class="box box_grey alert alert-error" style="margin-top: 0;">
106 <b>Warning:</b> Non-free media.
112 <td>{{ package.name }}</td>
114 {% if package.provides %}
117 <td>{% for meta in package.provides %}
118 <a href="{{ url_for('meta_package_page', name=meta.name) }}">{{ meta.name }}</a>
119 {%- if not loop.last %}
127 <td class="{{ package.author.rank }}">
128 <a href="{{ url_for('user_profile_page', username=package.author.username) }}">
129 {{ package.author.display_name }}
135 <td>{{ package.type.value }}</td>
140 {% if package.license == package.media_license %}
141 {{ package.license.name }}
142 {% elif package.type == package.type.TXP %}
143 {{ package.media_license.name }}
145 {{ package.license.name }} for code,<br />
146 {{ package.media_license.name }} for media.
152 <td>{{ package.created_at | datetime }}</td>
156 <ul class="buttonset linedbuttonset">
157 {% if package.getDownloadRelease() %}<li><a href="{{ package.getDownloadURL() }}" class="btn_green">Download</a></li>{% endif %}
158 {% if package.repo %}<li><a href="{{ package.repo }}">View Source</a></li>{% endif %}
159 {% if package.forums %}<li><a href="https://forum.minetest.net/viewtopic.php?t={{ package.forums }}">Forums</a></li>{% endif %}
160 {% if package.issueTracker %}<li><a href="{{ package.issueTracker }}">Issue Tracker</a></li>{% endif %}
161 {% if package.website %}<li><a href="{{ package.website }}">Website</a></li>{% endif %}
162 {% if package.checkPerm(current_user, "EDIT_PACKAGE") %}
163 <li><a href="{{ package.getEditURL() }}">Edit</a></li>
164 <li><a href="{{ package.getNewScreenshotURL() }}">Add screenshot</a></li>
166 {# {% if current_user.is_authenticated %}
167 <li><a href="{{ package.getCreateEditRequestURL() }}">Suggest Changes</a></li>
169 {% if package.checkPerm(current_user, "MAKE_RELEASE") %}
170 <li><a href="{{ package.getCreateReleaseURL() }}">Create Release</a></li>
172 {% if package.checkPerm(current_user, "DELETE_PACKAGE") %}
173 <li><a href="{{ package.getDeleteURL() }}">Delete</a></li>
179 <p class="package-short-large">{{ package.shortDesc }}</p>
181 {{ package.desc | markdown }}
186 {% for rel in releases %}
187 {% if rel.approved or package.checkPerm(current_user, "MAKE_RELEASE") or package.checkPerm(current_user, "APPROVE_RELEASE") %}
189 {% if not rel.approved %}<i>{% endif %}
191 <a href="{{ rel.url }}">{{ rel.title }}</a>,
192 created {{ rel.releaseDate | datetime }}.
194 <a href="{{ url_for('check_task', id=rel.task_id, r=package.getDetailsURL()) }}">Importing...</a>
195 {% elif not rel.approved %}
196 Waiting for approval.
199 {% if package.checkPerm(current_user, "MAKE_RELEASE") or package.checkPerm(current_user, "APPROVE_RELEASE") %}
200 <a href="{{ rel.getEditURL() }}">Edit
201 {% if not rel.task_id and not rel.approved and package.checkPerm(current_user, "APPROVE_RELEASE") %}
207 {% if not rel.approved %}</i>{% endif %}
211 <li>No releases available.</li>
217 {% for t in package.tags %}
218 <li>{{ t.title }}</li>
224 <!-- <table class="table-topalign">
227 <h3>Dependencies</h3>
229 {% for dep in package.dependencies %}
231 {%- if dep.package %}
232 <a href="{{ dep.package.getDetailsURL() }}">{{ dep.package.title }}</a> by {{ dep.package.author.display_name }}
233 {% elif dep.meta_package %}
234 <a href="{{ url_for('meta_package_page', name=dep.meta_package.name) }}">{{ dep.meta_package.name }}</a>
236 {{ "Excepted package or meta_package in dep!" | throw }}
238 {% if dep.optional %}
243 <li><i>No dependencies</i></li>
250 {% for p in package.dependents %}
251 <li><a href="{{ p.getDetailsURL() }}">{{ p.title }}</a> by {{ p.author.display_name }}</li>
253 {% if not package.softdependents %}
254 <li>No dependents.</li>
257 {% for p in package.softdependents %}
258 <li><a href="{{ p.getDetailsURL() }}">{{ p.title }}</a> by {{ p.author.display_name }} [optional]</li>
266 {% if current_user.is_authenticated or requests %}
267 <h3>Edit Requests</h3>
270 {% for r in requests %}
272 <a href="{{ r.getURL() }}">{{ r.title }}</a>
274 <a href="{{ url_for('user_profile_page', username=r.author.username) }}">{{ r.author.display_name }}</a>
277 <li>No edit requests have been made.</li>
283 {% if alternatives %}
284 <h3>Alternatives</h3>
286 {% for p in alternatives %}
287 <li><a href="{{ p.getDetailsURL() }}">{{ p.title }} by {{ p.author.display_name }}</a></li>
292 {% if similar_topics %}
293 <h3>Similar Forum Topics</h3>
294 {% if not package.approved and package.type == package.type.MOD %}
295 <div class="box box_grey alert alert-warning">
296 Please make sure that this package has the right to
297 the name '{{ package.name }}'.
299 <a href="/policy_and_guidance/">Inclusion Policy</a>
304 {% for t in similar_topics %}
307 <a href="https://forum.minetest.net/viewtopic.php?t={{ t.topic_id }}">
308 {{ t.title }} by {{ t.author.display_name }}
310 {% if t.wip %}[WIP]{% endif %}