For superusers, show "Site Administration" in top navigation, note in README. Fixes #317

This commit is contained in:
Pēteris Caune 2020-01-07 12:15:09 +02:00
parent c4edb415a2
commit 74ad152cc5
No known key found for this signature in database
GPG Key ID: E28D7679E9A9EDE2
3 changed files with 16 additions and 0 deletions

View File

@ -6,6 +6,7 @@ All notable changes to this project will be documented in this file.
### Improvements ### Improvements
- Show a red "!" in project's top navigation if any integration is not working - Show a red "!" in project's top navigation if any integration is not working
- createsuperuser management command requires an unique email address (#318) - createsuperuser management command requires an unique email address (#318)
- For superusers, show "Site Administration" in top navigation, note in README (#317)
## v1.12.0 - 2020-01-02 ## v1.12.0 - 2020-01-02

View File

@ -189,6 +189,16 @@ DATABASES = {
} }
``` ```
## Accessing Administration Panel
healthchecks comes with Django's administation panel where you can manually
view and modify user accounts, projects, checks, integrations etc. To access it,
* if you haven't already, create a superuser account: `./manage.py createsuperuser`
* log into the site using superuser credentials
* in the top navigation, "Account" dropdown, select "Site Administration"
## Sending Emails ## Sending Emails
healthchecks must be able to send email messages, so it can send out login healthchecks must be able to send email messages, so it can send out login

View File

@ -134,6 +134,11 @@
<span class="caret"></span> <span class="caret"></span>
</a> </a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
{% if request.user.is_superuser %}
<li><a href="{% url 'admin:index' %}">Site Administration</a></li>
<li role="separator" class="divider"></li>
{% endif %}
<li class="dropdown-header">Projects</li> <li class="dropdown-header">Projects</li>
{% for project in request.profile.annotated_projects %} {% for project in request.profile.annotated_projects %}
<li class="project-item"> <li class="project-item">