mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-23 14:32:25 +01:00
67 lines
1.9 KiB
HTML
67 lines
1.9 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}
|
|
Edit release | {{ package.title }}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
{% from "macros/forms.html" import render_field, render_submit_field, render_checkbox_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_checkbox_field(form.approved, class_="my-3") }}
|
|
{% else %}
|
|
Approved: {{ release.approved }}
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
<div class="row">
|
|
{{ render_field(form.min_rel, class_="col-sm-6") }}
|
|
{{ render_field(form.max_rel, class_="col-sm-6") }}
|
|
</div>
|
|
|
|
<p id="minmax_warning" style="color:#f00; display: none;">
|
|
Maximum must be greater than or equal to the minimum!
|
|
</p>
|
|
|
|
<p>
|
|
Note: Min and max versions will be used to hide the package on
|
|
platforms not within the range.
|
|
You cannot select the oldest version for min or the newest version
|
|
for max as this does not make sense - you can't predict the future.<br />
|
|
Leave both as None if in doubt.
|
|
</p>
|
|
|
|
{{ render_submit_field(form.submit) }}
|
|
</form>
|
|
{% endblock %}
|
|
|
|
{% block scriptextra %}
|
|
<script src="/static/release_minmax.js?v=1"></script>
|
|
{% endblock %}
|