aboutsummaryrefslogtreecommitdiff
path: root/app/templates/users
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/users
parentc31c1fd92a7de702a3fe517489d95dbc92643f5b (diff)
downloadcheatdb-1.23.5.tar.xz
Add links to GitHub oauth connection settingsv1.23.5
Diffstat (limited to 'app/templates/users')
-rw-r--r--app/templates/users/profile.html13
1 files changed, 12 insertions, 1 deletions
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>