contentdb/app/templates/packages/release_wizard.html
2021-02-05 15:44:00 +00:00

74 lines
2.3 KiB
HTML

{% extends "base.html" %}
{% block title %}
{{ _("How do you want to create releases?") }}
{% endblock %}
{% block content %}
<a class="btn btn-secondary float-right" href="{{ package.getDetailsURL() }}">
{{ _("Later") }}
</a>
<h1>{{ self.title() }}</h1>
<p>
{{ _("A release is a single downloadable version of your %(title)s.", title=package.type.value.lower()) }}
{{ _("You need to create releases even if you use a rolling release development cycle, as Minetest needs them to check for updates.") }}
</p>
{% if package.repo %}
<p>
{{ _("When you push a change to your Git repository, ContentDB can create a new release automatically or send you a reminder.") }}
{{ _("ContentDB will check your Git repository every day, but you can use webhooks or the API for faster updates.") }}
</p>
<p>
{{ _("This can be changed later.") }}
</p>
<div class="row">
<div class="col-md-6 mt-5">
<h3 class="mt-0">{{ _("Automatically (Recommended)") }}</h3>
<p>
<a class="btn btn-primary" href="{{ package.getUpdateConfigURL(trigger="commit") }}">
{{ _("Rolling Release") }}
</a>
<a class="btn btn-primary ml-2" href="{{ package.getUpdateConfigURL(trigger="tag") }}">
{{ _("On Git Tag") }}
</a>
{# <a class="btn btn-secondary ml-2" href="{{ package.getUpdateConfigURL() }}">#}
{# {{ _("Advanced") }}#}
{# </a>#}
</p>
</div>
<div class="col-md-6 mt-5">
<h3 class="mt-0">{{ _("Manually") }}</h3>
<p>
<a class="btn btn-secondary" href="{{ package.getUpdateConfigURL(action="notification") }}">
{{ _("With reminders") }}
</a>
<a class="btn btn-secondary ml-2" href="{{ package.getCreateReleaseURL() }}">
{{ _("No reminders") }}
</a>
</p>
</div>
</div>
{% else %}
<p>
{{ _("Using Git would allow you to create releases automatically when you push code or tags.") }}
{{ _("Unfortunately, you will otherwise need to create a release manually.") }}
</p>
<p>
{{ _("This can be changed later.") }}
</p>
<p class="mt-5">
<a class="btn btn-primary" href="{{ package.getEditURL() }}">Add Git repo</a>
<a class="btn btn-secondary ml-2" href="{{ package.getCreateReleaseURL() }}">Create releases manually</a>
<a class="btn btn-secondary ml-2" href="{{ package.getDetailsURL() }}">Later</a>
</p>
{% endif %}
{% endblock %}