mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-23 22:42:25 +01:00
Promote webhooks in release creation page
This commit is contained in:
parent
f2799349ab
commit
933a23c9c7
@ -5,6 +5,24 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
<p class="alert alert-info mb-4">
|
||||||
|
<a class="float-right btn btn-sm btn-info" href="{{ url_for('flatpage', path='help/release_webhooks') }}">{{ _("Learn more") }}</a>
|
||||||
|
{% if package.author == current_user and package.checkPerm(current_user, "APPROVE_RELEASE") and package.getIsOnGitHub() %}
|
||||||
|
<a class="float-right btn btn-sm btn-info mr-2" href="{{ url_for('github.setup_webhook', pid=package.id) }}">{{ _("Setup webhook") }}</a>
|
||||||
|
<i class="fas fa-info mr-2"></i>
|
||||||
|
|
||||||
|
{{ _("Set up a webhook on GitHub to create releases automatically.") }}
|
||||||
|
{% elif package.repo %}
|
||||||
|
<i class="fas fa-info mr-2"></i>
|
||||||
|
|
||||||
|
{{ _("You can create releases automatically when you push commits or tags to your repository.") }}
|
||||||
|
{% else %}
|
||||||
|
<i class="fas fa-info mr-2"></i>
|
||||||
|
|
||||||
|
{{ _("Using git will allow you to create releases automatically when you push code or tags.") }}
|
||||||
|
{% endif %}
|
||||||
|
</p>
|
||||||
|
|
||||||
{% from "macros/forms.html" import render_field, render_submit_field, render_radio_field %}
|
{% from "macros/forms.html" import render_field, render_submit_field, render_radio_field %}
|
||||||
<form method="POST" action="" enctype="multipart/form-data">
|
<form method="POST" action="" enctype="multipart/form-data">
|
||||||
{{ form.hidden_tag() }}
|
{{ form.hidden_tag() }}
|
||||||
|
@ -364,15 +364,6 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if package.author == current_user and package.checkPerm(current_user, "APPROVE_RELEASE") and package.getIsOnGitHub() %}
|
|
||||||
<p class="small text-centered">
|
|
||||||
<a href="{{ url_for('github.setup_webhook', pid=package.id) }}">
|
|
||||||
Set up a webhook
|
|
||||||
</a>
|
|
||||||
to create releases automatically.
|
|
||||||
</p>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<div class="card my-4">
|
<div class="card my-4">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
{% if package.approved and package.checkPerm(current_user, "CREATE_THREAD") %}
|
{% if package.approved and package.checkPerm(current_user, "CREATE_THREAD") %}
|
||||||
|
Loading…
Reference in New Issue
Block a user