]> git.lizzy.rs Git - cheatdb.git/blob - app/templates/github/setup_webhook.html
Add links to GitHub oauth connection settings
[cheatdb.git] / app / templates / github / setup_webhook.html
1 {% extends "base.html" %}
2
3 {% block title %}
4         {{ _("Setup GitHub webhook") }}
5 {% endblock %}
6
7 {% from "macros/forms.html" import render_field, render_submit_field, render_radio_field %}
8
9 {% block content %}
10         <h1 class="mt-0">{{ self.title() }}</h1>
11
12         <div class="alert alert-info">
13                 {{ _("You can delete the webhook at any time by going into Settings > Webhooks on the repository.") }}
14         </div>
15
16         <form method="POST" action="" enctype="multipart/form-data">
17                 {{ form.hidden_tag() }}
18
19                 {{ render_field(form.event) }}
20
21                 {{ render_submit_field(form.submit) }}
22         </form>
23
24         <p class="mt-4">
25                 You will need admin access to the repository.
26                 When setting up hooks on an organisation,
27                 <a href="{{ url_for('github.view_permissions') }}">make sure that you have granted access</a>.
28         </p>
29 {% endblock %}