mirror of
https://github.com/minetest/contentdb.git
synced 2024-11-10 01:23:48 +01:00
Add more information to approval view
This commit is contained in:
parent
e5de870b47
commit
12d58d338d
@ -11,17 +11,42 @@
|
|||||||
|
|
||||||
{% if package.checkPerm(current_user, "MAKE_RELEASE") %}
|
{% if package.checkPerm(current_user, "MAKE_RELEASE") %}
|
||||||
{{ render_field(form.title) }}
|
{{ render_field(form.title) }}
|
||||||
|
{% else %}
|
||||||
|
Title: {{ release.title }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if package.checkPerm(current_user, "CHANGE_RELEASE_URL") %}
|
{% if package.checkPerm(current_user, "CHANGE_RELEASE_URL") %}
|
||||||
{{ render_field(form.url) }}
|
{{ render_field(form.url) }}
|
||||||
|
{% else %}
|
||||||
|
Url: <a href="{{ release.url }}">{{ release.url }}</a><br />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if package.checkPerm(current_user, "APPROVE_RELEASE") %}
|
{% if package.checkPerm(current_user, "APPROVE_RELEASE") %}
|
||||||
{{ render_field(form.approved) }}
|
{{ render_field(form.approved) }}
|
||||||
|
{% else %}
|
||||||
|
Approved: {{ release.approved }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{{ render_submit_field(form.submit) }}
|
{{ render_submit_field(form.submit) }}
|
||||||
<input type="submit" value="Go">
|
<input type="submit" value="Go">
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
{% if package.checkPerm(current_user, "APPROVE_RELEASE") %}
|
||||||
|
<div class="box box_grey">
|
||||||
|
<h2>Approval Checklist</h2>
|
||||||
|
<ul>
|
||||||
|
<li>Link leads to a valid download, ie: is a zip file which
|
||||||
|
has either init.lua or modpack.txt if a mod, mods/ if a game, or textures if a texture pack.
|
||||||
|
It's okay if they're inside an immediate folder, like so:
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
example.zip/
|
||||||
|
└── example
|
||||||
|
└── init.lua
|
||||||
|
</pre>
|
||||||
|
</li>
|
||||||
|
<li>There's no obfuscated code.</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -205,4 +205,4 @@ def edit_release_page(type, author, name, id):
|
|||||||
db.session.commit()
|
db.session.commit()
|
||||||
return redirect(package.getDetailsURL())
|
return redirect(package.getDetailsURL())
|
||||||
|
|
||||||
return render_template('package_release_edit.html', package=package, form=form)
|
return render_template('package_release_edit.html', package=package, release=release, form=form)
|
||||||
|
Loading…
Reference in New Issue
Block a user