contentdb/app/templates/packages/update_config.html

54 lines
1.6 KiB
HTML
Raw Normal View History

{% extends "base.html" %}
{% block title %}
2020-12-16 16:08:37 +01:00
{{ _("Configure Git Update Detection") }} - {{ package.title }}
{% endblock %}
{% block content %}
2020-12-16 16:08:37 +01:00
<h1>{{ _("Configure Git Update Detection") }}</h1>
2020-12-15 22:22:17 +01:00
<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.") }}
2020-12-15 22:22:17 +01:00
</p>
<p>
2020-12-16 16:08:37 +01:00
{{ _("ContentDB will poll your Git repository every day, if your package is approved.") }}
2020-12-15 23:56:50 +01:00
{{ _("You should consider using webhooks or the API for faster releases.") }}
</p>
2020-12-15 22:22:17 +01:00
{% if package.checkPerm(current_user, "APPROVE_RELEASE") and package.getIsOnGitHub() %}
2021-01-26 17:22:13 +01:00
<p class="alert alert-secondary mb-4">
2020-12-15 22:22:17 +01:00
<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>
2021-01-26 17:22:13 +01:00
{{ _("You can create releases faster by using a webhook or the API.") }}
2020-12-15 22:22:17 +01:00
</p>
{% endif %}
{% from "macros/forms.html" import render_field, render_submit_field, render_checkbox_field %}
<form method="POST" action="">
{{ form.hidden_tag() }}
2020-12-15 22:22:17 +01:00
{{ render_field(form.trigger, class_="mt-5") }}
{{ render_field(form.ref, placeholder="Leave blank to use default branch",
pattern="[A-Za-z0-9/._-]+") }}
<p class="text-muted mb-4 mt-0">
2020-12-16 16:08:37 +01:00
<small>
<span class="fas fa-info mx-1"></span>
{{ _("Currently, the branch name field is only used by the New Commit trigger.") }}
2020-12-16 16:08:37 +01:00
</small>
</p>
2020-12-15 22:22:17 +01:00
{{ render_field(form.action) }}
<p class="mt-5">
{{ render_submit_field(form.submit) }}
2020-12-15 22:22:17 +01:00
{{ render_submit_field(form.disable, class_="btn btn-secondary ml-2") }}
</p>
</form>
{% endblock %}