mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-24 23:12:25 +01:00
46 lines
1.2 KiB
HTML
46 lines
1.2 KiB
HTML
{% 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) }}
|
|
{% 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 release.commit_hash %}
|
|
Commit Hash: {{ release.commit_hash }}<br />
|
|
{% endif %}
|
|
|
|
{% if release.task_id %}
|
|
Importing... <a href="{{ url_for('check_task', id=release.task_id, r=release.getEditURL()) }}">view task</a><br />
|
|
{% if package.checkPerm(current_user, "CHANGE_RELEASE_URL") %}
|
|
{{ render_field(form.task_id) }}
|
|
{% endif %}
|
|
|
|
<br />
|
|
{% else %}
|
|
{% if package.checkPerm(current_user, "APPROVE_RELEASE") %}
|
|
{{ render_field(form.approved) }}
|
|
{% else %}
|
|
Approved: {{ release.approved }}
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
{{ render_submit_field(form.submit) }}
|
|
</form>
|
|
{% endblock %}
|