contentdb/app/templates/packages/update_config.html
2021-01-29 16:36:23 +00:00

55 lines
1.7 KiB
HTML

{% extends "base.html" %}
{% block title %}
{{ _("Configure Git Update Detection") }} - {{ package.title }}
{% endblock %}
{% block content %}
<h1>{{ _("Configure Git Update Detection") }}</h1>
<p>
{{ _("When you push a change to your Git repository, ContentDB can create a new release automatically or send you a reminder.") }}
</p>
<p>
{{ _("ContentDB will poll your Git repository every day, if your package is approved.") }}
{{ _("You should consider using webhooks or the API for faster releases.") }}
</p>
{% if package.checkPerm(current_user, "APPROVE_RELEASE") and package.getIsOnGitHub() %}
<p class="alert alert-secondary mb-4">
<a class="float-right btn btn-sm btn-info" href="{{ url_for('flatpage', path='help/release_webhooks') }}">{{ _("Learn more") }}</a>
<i class="fas fa-info mr-2"></i>
{{ _("You can create releases faster by using a webhook or the API.") }}
</p>
{% endif %}
{% from "macros/forms.html" import render_field, render_submit_field, render_checkbox_field %}
<form method="POST" action="">
{{ form.hidden_tag() }}
{{ render_field(form.trigger, class_="mt-5") }}
<p class="text-warning mb-4">
<small>
<span class="fas fa-exclamation-triangle mr-2"></span>
{{ _("The new tag trigger isn't supported yet.") }}
{{ _("If you choose it, it won't trigger until it is supported.") }}
{{ _("In the meantime, you can use webhooks to create releases on tag events.") }}
</small>
</p>
{{ render_field(form.ref, placeholder="Leave blank to use default branch",
pattern="[A-Za-z0-9/._-]+") }}
{{ render_field(form.action) }}
<p class="mt-5">
{{ render_submit_field(form.submit) }}
{{ render_submit_field(form.disable, class_="btn btn-secondary ml-2") }}
</p>
</form>
{% endblock %}