contentdb/app/templates/packages/release_wizard.html

80 lines
2.5 KiB
HTML
Raw Normal View History

2020-12-15 22:22:17 +01:00
{% extends "base.html" %}
{% block title %}
{{ _("How do you want to create releases?") }}
{% endblock %}
{% block content %}
2021-07-24 05:30:14 +02:00
<a class="btn btn-secondary float-right" href="{{ package.getURL("packages.view") }}">
2021-02-05 16:29:44 +01:00
{{ _("Later") }}
</a>
2020-12-15 22:22:17 +01:00
<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>
2020-12-16 16:08:37 +01:00
{{ _("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.") }}
2020-12-15 22:22:17 +01:00
</p>
<p>
{{ _("This can be changed later.") }}
</p>
2021-02-05 16:29:44 +01:00
<div class="row">
<div class="col-md-6 mt-5">
<h3 class="mt-0">{{ _("Automatically (Recommended)") }}</h3>
<p>
2021-07-24 05:30:14 +02:00
<a class="btn btn-primary" href="{{ package.getURL("packages.update_config", trigger="commit") }}">
2021-02-05 16:29:44 +01:00
{{ _("Rolling Release") }}
</a>
2021-07-24 05:30:14 +02:00
<a class="btn btn-primary ml-2" href="{{ package.getURL("packages.update_config", trigger="tag") }}">
2021-02-05 16:29:44 +01:00
{{ _("On Git Tag") }}
</a>
2021-07-24 05:30:14 +02:00
{# <a class="btn btn-secondary ml-2" href="{{ package.getURL("packages.update_config") }}">#}
2021-02-05 16:29:44 +01:00
{# {{ _("Advanced") }}#}
{# </a>#}
</p>
</div>
<div class="col-md-6 mt-5">
<h3 class="mt-0">{{ _("Manually") }}</h3>
<p>
2021-07-24 05:30:14 +02:00
<a class="btn btn-secondary" href="{{ package.getURL("packages.update_config", action="notification") }}">
2021-02-05 16:29:44 +01:00
{{ _("With reminders") }}
</a>
2021-07-24 05:30:14 +02:00
<a class="btn btn-secondary ml-2" href="{{ package.getURL("packages.create_release") }}">
2021-02-05 16:29:44 +01:00
{{ _("No reminders") }}
</a>
</p>
</div>
</div>
2020-12-15 22:22:17 +01:00
{% 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">
2022-01-08 00:27:00 +01:00
<a class="btn btn-primary" href="{{ package.getURL("packages.create_edit") }}">
{{ _("Add Git repo") }}
</a>
<a class="btn btn-secondary ml-2" href="{{ package.getURL("packages.create_release") }}">
{{ _("Create releases manually") }}
</a>
<a class="btn btn-secondary ml-2" href="{{ package.getURL("packages.view") }}">
{{ _("Later") }}
</a>
2020-12-15 22:22:17 +01:00
</p>
{% endif %}
{% endblock %}