Browse Source

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

pull/320/head
Pēteris Caune 5 years ago
parent
commit
74ad152cc5
No known key found for this signature in database GPG Key ID: E28D7679E9A9EDE2
3 changed files with 16 additions and 0 deletions
  1. +1
    -0
      CHANGELOG.md
  2. +10
    -0
      README.md
  3. +5
    -0
      templates/base.html

+ 1
- 0
CHANGELOG.md 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


+ 10
- 0
README.md 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


+ 5
- 0
templates/base.html 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">


Loading…
Cancel
Save