forked from GithubBackups/healthchecks
For superusers, show "Site Administration" in top navigation, note in README. Fixes #317
This commit is contained in:
parent
c4edb415a2
commit
74ad152cc5
@ -6,6 +6,7 @@ All notable changes to this project will be documented in this file.
|
||||
### Improvements
|
||||
- Show a red "!" in project's top navigation if any integration is not working
|
||||
- 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
|
||||
|
10
README.md
10
README.md
@ -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
|
||||
|
||||
healthchecks must be able to send email messages, so it can send out login
|
||||
|
@ -134,6 +134,11 @@
|
||||
<span class="caret"></span>
|
||||
</a>
|
||||
<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>
|
||||
{% for project in request.profile.annotated_projects %}
|
||||
<li class="project-item">
|
||||
|
Loading…
x
Reference in New Issue
Block a user