{% extends "base.html" %} {% block title %} {{ _("Create a release") }} - {{ package.title }} {% endblock %} {% block content %}

{{ _("Create a release") }}

{% if package.update_config %}

{{ _("Settings") }} {% if package.update_config.make_release %} {{ _("You have automatic releases enabled.") }} {% else %} {{ _("You have Git update notifications enabled.") }} {{ _("You can enable automatic updates in the update settings.") }} {% endif %}

{% else %}

{% if package.repo %} {{ _("Set up") }} {{ _("You can create releases automatically when you push commits or tags to your repository.") }} {% else %} {{ _("Add Git repo") }} {{ _("Using Git would allow you to create releases automatically when you push code or tags.") }} {% endif %}

{% endif %} {% from "macros/forms.html" import render_field, render_submit_field, render_radio_field %}
{{ form.hidden_tag() }}

{{ _("1. Name release") }}

{{ render_field(form.title, placeholder=_("Human readable. Eg: 1.0.0 or 2018-05-28")) }}

{{ _("2. Set the content") }}

{{ _("Method") }}

{{ render_radio_field(form.uploadOpt) }} {% if package.repo %} {{ render_field(form.vcsLabel, placeholder=_("Leave blank to use default branch"), class_="mt-3", pattern="[A-Za-z0-9/._-]+") }} {% endif %} {{ render_field(form.fileUpload, fieldclass="form-control-file", class_="mt-3", accept=".zip") }}

{{ _("Take a look at the Package Configuration and Releases Guide for tips on customising releases.") }}

{{ _("3. Supported Minetest versions") }}

{{ render_field(form.min_rel, class_="col-sm-6") }} {{ render_field(form.max_rel, class_="col-sm-6") }}

{{ _("The .conf of your package can set this automatically, which will override your selection.") }}

{{ _("Set the minimum and maximum Minetest versions supported. This release will be hidden to clients outside of that range. ") }}
{{ _("Leave both as None if in doubt.") }}

{{ render_submit_field(form.submit) }}

{% endblock %} {% block scriptextra %} {% endblock %}