2018-03-21 17:41:34 +01:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
Create a release | {{ package.title }}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2018-12-22 23:29:30 +01:00
|
|
|
{% from "macros/forms.html" import render_field, render_submit_field, render_checkbox_field %}
|
2018-03-21 17:41:34 +01:00
|
|
|
<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 %}
|
|
|
|
|
2018-07-28 15:48:03 +02:00
|
|
|
{% if release.commit_hash %}
|
|
|
|
Commit Hash: {{ release.commit_hash }}<br />
|
|
|
|
{% endif %}
|
|
|
|
|
2018-05-23 20:17:44 +02:00
|
|
|
{% if release.task_id %}
|
2018-07-28 17:06:23 +02:00
|
|
|
Importing... <a href="{{ url_for('check_task', id=release.task_id, r=release.getEditURL()) }}">view task</a><br />
|
2018-05-23 20:17:44 +02:00
|
|
|
{% if package.checkPerm(current_user, "CHANGE_RELEASE_URL") %}
|
|
|
|
{{ render_field(form.task_id) }}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<br />
|
2018-03-21 20:36:53 +01:00
|
|
|
{% else %}
|
2018-05-23 20:30:11 +02:00
|
|
|
{% if package.checkPerm(current_user, "APPROVE_RELEASE") %}
|
2018-12-22 23:29:30 +01:00
|
|
|
{{ render_checkbox_field(form.approved, class_="my-3") }}
|
2018-05-23 20:30:11 +02:00
|
|
|
{% else %}
|
|
|
|
Approved: {{ release.approved }}
|
|
|
|
{% endif %}
|
2018-03-21 17:41:34 +01:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{{ render_submit_field(form.submit) }}
|
|
|
|
</form>
|
|
|
|
{% endblock %}
|