2018-03-21 17:41:34 +01:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
Create a release | {{ package.title }}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
{% from "macros/forms.html" import render_field, render_submit_field %}
|
|
|
|
<form method="POST" action="">
|
|
|
|
{{ form.hidden_tag() }}
|
|
|
|
|
|
|
|
{% if package.checkPerm(current_user, "MAKE_RELEASE") %}
|
|
|
|
{{ render_field(form.title) }}
|
2018-03-21 20:36:53 +01:00
|
|
|
{% else %}
|
|
|
|
Title: {{ release.title }}
|
2018-03-21 17:41:34 +01:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if package.checkPerm(current_user, "CHANGE_RELEASE_URL") %}
|
|
|
|
{{ render_field(form.url) }}
|
2018-03-21 20:36:53 +01:00
|
|
|
{% else %}
|
|
|
|
Url: <a href="{{ release.url }}">{{ release.url }}</a><br />
|
2018-03-21 17:41:34 +01:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if package.checkPerm(current_user, "APPROVE_RELEASE") %}
|
|
|
|
{{ render_field(form.approved) }}
|
2018-03-21 20:36:53 +01:00
|
|
|
{% else %}
|
|
|
|
Approved: {{ release.approved }}
|
2018-03-21 17:41:34 +01:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{{ render_submit_field(form.submit) }}
|
|
|
|
<input type="submit" value="Go">
|
|
|
|
</form>
|
2018-03-21 20:36:53 +01:00
|
|
|
|
|
|
|
{% 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 %}
|
2018-03-21 17:41:34 +01:00
|
|
|
{% endblock %}
|