Add more information to approval view

This commit is contained in:
rubenwardy 2018-03-21 19:36:53 +00:00
parent e5de870b47
commit 12d58d338d
2 changed files with 26 additions and 1 deletions

@ -11,17 +11,42 @@
{% if package.checkPerm(current_user, "MAKE_RELEASE") %}
{{ render_field(form.title) }}
{% else %}
Title: {{ release.title }}
{% endif %}
{% if package.checkPerm(current_user, "CHANGE_RELEASE_URL") %}
{{ render_field(form.url) }}
{% else %}
Url: <a href="{{ release.url }}">{{ release.url }}</a><br />
{% endif %}
{% if package.checkPerm(current_user, "APPROVE_RELEASE") %}
{{ render_field(form.approved) }}
{% else %}
Approved: {{ release.approved }}
{% endif %}
{{ render_submit_field(form.submit) }}
<input type="submit" value="Go">
</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 %}

@ -205,4 +205,4 @@ def edit_release_page(type, author, name, id):
db.session.commit()
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)