diff options
Diffstat (limited to 'app/templates')
| -rw-r--r-- | app/templates/github/setup_webhook.html | 6 | ||||
| -rw-r--r-- | app/templates/users/profile.html | 13 |
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> |
