aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/templates/package_release_edit.html25
-rw-r--r--app/views/packages.py2
2 files changed, 26 insertions, 1 deletions
diff --git a/app/templates/package_release_edit.html b/app/templates/package_release_edit.html
index 451fc81..0d3b0df 100644
--- a/app/templates/package_release_edit.html
+++ b/app/templates/package_release_edit.html
@@ -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 %}
diff --git a/app/views/packages.py b/app/views/packages.py
index f7773b4..6f2d304 100644
--- a/app/views/packages.py
+++ b/app/views/packages.py
@@ -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)