aboutsummaryrefslogtreecommitdiff
path: root/app/templates/github
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2020-01-24 23:19:06 +0000
committerrubenwardy <rw@rubenwardy.com>2020-01-24 23:19:06 +0000
commite12aec4ccdef7752fb87bd857a48eb4587016573 (patch)
tree2a1feae67fb204b0f308258ce70bd8e4ac26d887 /app/templates/github
parentd4936e18ee93f8ee8aedce4bc732af5068974536 (diff)
downloadcheatdb-e12aec4ccdef7752fb87bd857a48eb4587016573.tar.xz
Add automatic GitHub webhook creation
Diffstat (limited to 'app/templates/github')
-rw-r--r--app/templates/github/setup_webhook.html23
1 files changed, 23 insertions, 0 deletions
diff --git a/app/templates/github/setup_webhook.html b/app/templates/github/setup_webhook.html
new file mode 100644
index 0000000..d0012e2
--- /dev/null
+++ b/app/templates/github/setup_webhook.html
@@ -0,0 +1,23 @@
+{% extends "base.html" %}
+
+{% block title %}
+ {{ _("Setup GitHub webhook") }}
+{% endblock %}
+
+{% from "macros/forms.html" import render_field, render_submit_field, render_radio_field %}
+
+{% block content %}
+ <h1 class="mt-0">{{ self.title() }}</h1>
+
+ <div class="alert alert-info">
+ {{ _("You can delete the webhook at any time by going into Settings > Webhooks on the repository.") }}
+ </div>
+
+ <form method="POST" action="" enctype="multipart/form-data">
+ {{ form.hidden_tag() }}
+
+ {{ render_field(form.event) }}
+
+ {{ render_submit_field(form.submit) }}
+ </form>
+{% endblock %}