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.
28 {% if package.screenshots.count() == 0 %}
29 <b>You should add at least one screenshot, but this isn't required.</b><br />
32 {% if not package.getDownloadRelease() %}
33 Please wait for the release to be approved.
34 {% elif package.checkPerm(current_user, "APPROVE_NEW") %}
35 You can now approve this package if you're ready.
36 <form method="post" action="{{ package.getApproveURL() }}">
37 <input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
38 <input type="submit" value="Approve" />
41 Please wait for the package to be approved.
44 <div style="clear: both;"></div>
47 {% if package.author == current_user or package.checkPerm(current_user, "APPROVE_NEW") %}
48 {% if review_thread %}
49 <h2>🔒 {{ review_thread.title }}</h2>
51 This thread is only visible to the package owner and users of
55 {% from "macros/threads.html" import render_thread %}
56 {{ render_thread(review_thread, current_user) }}
58 <div class="box box_grey alert alert-info">
59 Privately ask a question or give feedback
61 <a class="alert_right button" href="{{ url_for('new_thread_page', pid=package.id, title='Package approval comments') }}">Open Thread</a>
67 <h1>{{ package.title }} by {{ package.author.display_name }}</h1>
69 <ul class="screenshot_list">
70 {% for ss in package.screenshots %}
71 {% if ss.approved or package.checkPerm(current_user, "ADD_SCREENSHOTS") %}
73 <a href="{% if package.checkPerm(current_user, 'ADD_SCREENSHOTS') %}{{ ss.getEditURL() }}{% else %}{{ ss.url }}{% endif %}">
74 <img src="{{ ss.getThumbnailURL() }}" alt="{{ ss.title }}" />
81 <aside class="asideright box box_grey">
84 <div class="box-body">
85 {% if not package.license.is_foss and not package.media_license.is_foss and package.type != package.type.TXP %}
86 <div class="box box_grey alert alert-error" style="margin-top: 0;">
87 <b>Warning:</b> Non-free code and media.
89 {% elif not package.license.is_foss and package.type != package.type.TXP %}
90 <div class="box box_grey alert alert-error" style="margin-top: 0;">
91 <b>Warning:</b> Non-free code.
93 {% elif not package.media_license.is_foss %}
94 <div class="box box_grey alert alert-error" style="margin-top: 0;">
95 <b>Warning:</b> Non-free media.
101 <td>{{ package.name }}</td>
103 {% if package.provides %}
106 <td>{% for meta in package.provides %}
107 <a href="{{ url_for('meta_package_page', name=meta.name) }}">{{ meta.name }}</a>
108 {%- if not loop.last %}
116 <td class="{{ package.author.rank }}">
117 <a href="{{ url_for('user_profile_page', username=package.author.username) }}">
118 {{ package.author.display_name }}
124 <td>{{ package.type.value }}</td>
129 {% if package.license == package.media_license %}
130 {{ package.license.name }}
131 {% elif package.type == package.type.TXP %}
132 {{ package.media_license.name }}
134 {{ package.license.name }} for code,<br />
135 {{ package.media_license.name }} for media.
141 <td>{{ package.created_at | datetime }}</td>
145 <ul class="buttonset linedbuttonset">
146 {% if package.getDownloadRelease() %}<li><a href="{{ package.getDownloadURL() }}" class="btn_green">Download</a></li>{% endif %}
147 {% if package.repo %}<li><a href="{{ package.repo }}">View Source</a></li>{% endif %}
148 {% if package.forums %}<li><a href="https://forum.minetest.net/viewtopic.php?t={{ package.forums }}">Forums</a></li>{% endif %}
149 {% if package.issueTracker %}<li><a href="{{ package.issueTracker }}">Issue Tracker</a></li>{% endif %}
150 {% if package.website %}<li><a href="{{ package.website }}">Website</a></li>{% endif %}
151 {% if package.checkPerm(current_user, "EDIT_PACKAGE") %}
152 <li><a href="{{ package.getEditURL() }}">Edit</a></li>
153 <li><a href="{{ package.getNewScreenshotURL() }}">Add screenshot</a></li>
155 {# {% if current_user.is_authenticated %}
156 <li><a href="{{ package.getCreateEditRequestURL() }}">Suggest Changes</a></li>
158 {% if package.checkPerm(current_user, "MAKE_RELEASE") %}
159 <li><a href="{{ package.getCreateReleaseURL() }}">Create Release</a></li>
161 {% if package.checkPerm(current_user, "DELETE_PACKAGE") %}
162 <li><a href="{{ package.getDeleteURL() }}">Delete</a></li>
168 <p class="package-short-large">{{ package.shortDesc }}</p>
170 {{ package.desc | markdown }}
175 {% for rel in releases %}
176 {% if rel.approved or package.checkPerm(current_user, "MAKE_RELEASE") or package.checkPerm(current_user, "APPROVE_RELEASE") %}
178 {% if not rel.approved %}<i>{% endif %}
180 <a href="{{ rel.url }}">{{ rel.title }}</a>,
181 created {{ rel.releaseDate | datetime }}.
183 <a href="{{ url_for('check_task', id=rel.task_id, r=package.getDetailsURL()) }}">Importing...</a>
184 {% elif not rel.approved %}
185 Waiting for approval.
188 {% if package.checkPerm(current_user, "MAKE_RELEASE") or package.checkPerm(current_user, "APPROVE_RELEASE") %}
189 <a href="{{ rel.getEditURL() }}">Edit
190 {% if not rel.task_id and not rel.approved and package.checkPerm(current_user, "APPROVE_RELEASE") %}
196 {% if not rel.approved %}</i>{% endif %}
200 <li>No releases available.</li>
206 {% for t in package.tags %}
207 <li>{{ t.title }}</li>
213 <!-- <table class="table-topalign">
216 <h3>Dependencies</h3>
218 {% for dep in package.dependencies %}
220 {%- if dep.package %}
221 <a href="{{ dep.package.getDetailsURL() }}">{{ dep.package.title }}</a> by {{ dep.package.author.display_name }}
222 {% elif dep.meta_package %}
223 <a href="{{ url_for('meta_package_page', name=dep.meta_package.name) }}">{{ dep.meta_package.name }}</a>
225 {{ "Excepted package or meta_package in dep!" | throw }}
227 {% if dep.optional %}
232 <li><i>No dependencies</i></li>
239 {% for p in package.dependents %}
240 <li><a href="{{ p.getDetailsURL() }}">{{ p.title }}</a> by {{ p.author.display_name }}</li>
242 {% if not package.softdependents %}
243 <li>No dependents.</li>
246 {% for p in package.softdependents %}
247 <li><a href="{{ p.getDetailsURL() }}">{{ p.title }}</a> by {{ p.author.display_name }} [optional]</li>
255 {% if current_user.is_authenticated or requests %}
256 <h3>Edit Requests</h3>
259 {% for r in requests %}
261 <a href="{{ r.getURL() }}">{{ r.title }}</a>
263 <a href="{{ url_for('user_profile_page', username=r.author.username) }}">{{ r.author.display_name }}</a>
266 <li>No edit requests have been made.</li>
272 {% if alternatives %}
273 <h3>Alternatives</h3>
275 {% for p in alternatives %}
276 <li><a href="{{ p.getDetailsURL() }}">{{ p.title }} by {{ p.author.display_name }}</a></li>
281 {% if similar_topics %}
282 <h3>Similar Forum Topics</h3>
283 {% if not package.approved and package.type == package.type.MOD %}
284 <div class="box box_grey alert alert-warning">
285 Please make sure that this package has the right to
286 the name '{{ package.name }}'.
288 <a href="/policy_and_guidance/">Inclusion Policy</a>
293 {% for t in similar_topics %}
296 <a href="https://forum.minetest.net/viewtopic.php?t={{ t.topic_id }}">
297 {{ t.title }} by {{ t.author.display_name }}
299 {% if t.wip %}[WIP]{% endif %}