aboutsummaryrefslogtreecommitdiff
path: root/app/templates
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2020-01-30 21:39:51 +0000
committerrubenwardy <rw@rubenwardy.com>2020-01-30 21:39:51 +0000
commit744c52ba1821506f14fa0226afc8975b04cf76d5 (patch)
tree1b563db0c6ede72f7db3682047a9484dbd8cc492 /app/templates
parentc31c1fd92a7de702a3fe517489d95dbc92643f5b (diff)
downloadcheatdb-744c52ba1821506f14fa0226afc8975b04cf76d5.tar.xz
Add links to GitHub oauth connection settingsv1.23.5
Diffstat (limited to 'app/templates')
-rw-r--r--app/templates/github/setup_webhook.html6
-rw-r--r--app/templates/users/profile.html13
2 files changed, 18 insertions, 1 deletions
diff --git a/app/templates/github/setup_webhook.html b/app/templates/github/setup_webhook.html
index d0012e2..d1a2bc6 100644
--- a/app/templates/github/setup_webhook.html
+++ b/app/templates/github/setup_webhook.html
@@ -20,4 +20,10 @@
{{ render_submit_field(form.submit) }}
</form>
+
+ <p class="mt-4">
+ You will need admin access to the repository.
+ When setting up hooks on an organisation,
+ <a href="{{ url_for('github.view_permissions') }}">make sure that you have granted access</a>.
+ </p>
{% endblock %}
diff --git a/app/templates/users/profile.html b/app/templates/users/profile.html
index d2f5baa..37ee5df 100644
--- a/app/templates/users/profile.html
+++ b/app/templates/users/profile.html
@@ -64,6 +64,7 @@
| <a href="{{ user.website_url }}" rel="nofollow">Website</a>
{% endif %}
+
{% if user == current_user %}
<br>
<small class="text-muted">
@@ -73,6 +74,16 @@
{% endif %}
</td>
</tr>
+
+ {% if user == current_user and user.github_username %}
+ <tr>
+ <td>Privacy:</td>
+ <td>
+ <a href="{{ url_for('github.view_permissions') }}">View ContentDB's GitHub Permissions</a>
+ </td>
+ </tr>
+ {% endif %}
+
{% if current_user.is_authenticated and current_user.rank.atLeast(current_user.rank.MODERATOR) %}
<tr>
<td>Admin</td>
@@ -115,7 +126,7 @@
</a>
{% endif %}
</td>
- </tr>
+ </tr>
<tr>
<td>Password:</td>
<td>