forked from GithubBackups/healthchecks
Show Healthchecks version in Django admin header cc: #306
This commit is contained in:
parent
5f47161e5e
commit
838aee6bdd
25
CHANGELOG.md
25
CHANGELOG.md
@ -1,13 +1,14 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
## Unreleased
|
## v1.12.0-dev - Unreleased
|
||||||
|
|
||||||
### Improvements
|
### Improvements
|
||||||
- "Filtering Rules" dialog, an option to require HTTP POST (#297)
|
- "Filtering Rules" dialog, an option to require HTTP POST (#297)
|
||||||
|
- Show Healthchecks version in Django admin header (#306)
|
||||||
|
|
||||||
|
|
||||||
## 1.11.0 - 2019-11-22
|
## v1.11.0 - 2019-11-22
|
||||||
|
|
||||||
### Improvements
|
### Improvements
|
||||||
- In monthly reports, no downtime stats for the current month (month has just started)
|
- In monthly reports, no downtime stats for the current month (month has just started)
|
||||||
@ -21,7 +22,7 @@ All notable changes to this project will be documented in this file.
|
|||||||
- Make log events fit better on mobile screens
|
- Make log events fit better on mobile screens
|
||||||
|
|
||||||
|
|
||||||
## 1.10.0 - 2019-10-21
|
## v1.10.0 - 2019-10-21
|
||||||
|
|
||||||
### Improvements
|
### Improvements
|
||||||
- Add the "Last Duration" field in the "My Checks" page (#257)
|
- Add the "Last Duration" field in the "My Checks" page (#257)
|
||||||
@ -41,7 +42,7 @@ All notable changes to this project will be documented in this file.
|
|||||||
- Upgrade to Django 2.2.6 – fixes sqlite migrations (#284)
|
- Upgrade to Django 2.2.6 – fixes sqlite migrations (#284)
|
||||||
|
|
||||||
|
|
||||||
## 1.9.0 - 2019-09-03
|
## v1.9.0 - 2019-09-03
|
||||||
|
|
||||||
### Improvements
|
### Improvements
|
||||||
- Show the number of downtimes and total downtime minutes in monthly reports (#104)
|
- Show the number of downtimes and total downtime minutes in monthly reports (#104)
|
||||||
@ -55,7 +56,7 @@ All notable changes to this project will be documented in this file.
|
|||||||
- Fix javascript code to construct correct URLs when running from a subdirectory (#273)
|
- Fix javascript code to construct correct URLs when running from a subdirectory (#273)
|
||||||
- Don't show the "Sign Up" link in the login page if registration is closed (#280)
|
- Don't show the "Sign Up" link in the login page if registration is closed (#280)
|
||||||
|
|
||||||
## 1.8.0 - 2019-07-08
|
## v1.8.0 - 2019-07-08
|
||||||
|
|
||||||
### Improvements
|
### Improvements
|
||||||
- Add the `prunetokenbucket` management command
|
- Add the `prunetokenbucket` management command
|
||||||
@ -74,7 +75,7 @@ All notable changes to this project will be documented in this file.
|
|||||||
- Fix `prunepings` and `prunepingsslow`, they got broken when adding Projects (#264)
|
- Fix `prunepings` and `prunepingsslow`, they got broken when adding Projects (#264)
|
||||||
|
|
||||||
|
|
||||||
## 1.7.0 - 2019-05-02
|
## v1.7.0 - 2019-05-02
|
||||||
|
|
||||||
### Improvements
|
### Improvements
|
||||||
- Add the EMAIL_USE_VERIFICATION configuration setting (#232)
|
- Add the EMAIL_USE_VERIFICATION configuration setting (#232)
|
||||||
@ -88,7 +89,7 @@ All notable changes to this project will be documented in this file.
|
|||||||
- Include the description in email alerts. (#247)
|
- Include the description in email alerts. (#247)
|
||||||
|
|
||||||
|
|
||||||
## 1.6.0 - 2019-04-01
|
## v1.6.0 - 2019-04-01
|
||||||
|
|
||||||
### Improvements
|
### Improvements
|
||||||
- Add the "desc" field (check's description) to API responses
|
- Add the "desc" field (check's description) to API responses
|
||||||
@ -104,7 +105,7 @@ All notable changes to this project will be documented in this file.
|
|||||||
- Fix a "invalid time format" in front.views.status_single on Windows hosts
|
- Fix a "invalid time format" in front.views.status_single on Windows hosts
|
||||||
|
|
||||||
|
|
||||||
## 1.5.0 - 2019-02-04
|
## v1.5.0 - 2019-02-04
|
||||||
|
|
||||||
### Improvements
|
### Improvements
|
||||||
- Database schema: add uniqueness constraint to Check.code
|
- Database schema: add uniqueness constraint to Check.code
|
||||||
@ -116,7 +117,7 @@ All notable changes to this project will be documented in this file.
|
|||||||
- Add the "My Projects" page
|
- Add the "My Projects" page
|
||||||
|
|
||||||
|
|
||||||
## 1.4.0 - 2018-12-25
|
## v1.4.0 - 2018-12-25
|
||||||
|
|
||||||
### Improvements
|
### Improvements
|
||||||
- Set Pushover alert priorities for "down" and "up" events separately
|
- Set Pushover alert priorities for "down" and "up" events separately
|
||||||
@ -134,7 +135,7 @@ All notable changes to this project will be documented in this file.
|
|||||||
- Validate and reject cron schedules with six components
|
- Validate and reject cron schedules with six components
|
||||||
|
|
||||||
|
|
||||||
## 1.3.0 - 2018-11-21
|
## v1.3.0 - 2018-11-21
|
||||||
|
|
||||||
### Improvements
|
### Improvements
|
||||||
- Load settings from environment variables
|
- Load settings from environment variables
|
||||||
@ -154,7 +155,7 @@ All notable changes to this project will be documented in this file.
|
|||||||
- During DST transition, handle ambiguous dates as pre-transition
|
- During DST transition, handle ambiguous dates as pre-transition
|
||||||
|
|
||||||
|
|
||||||
## 1.2.0 - 2018-10-20
|
## v1.2.0 - 2018-10-20
|
||||||
|
|
||||||
### Improvements
|
### Improvements
|
||||||
- Content updates in the "Welcome" page.
|
- Content updates in the "Welcome" page.
|
||||||
@ -169,7 +170,7 @@ All notable changes to this project will be documented in this file.
|
|||||||
- Fix hamburger menu button in "Login" page.
|
- Fix hamburger menu button in "Login" page.
|
||||||
|
|
||||||
|
|
||||||
## 1.1.0 - 2018-08-20
|
## v1.1.0 - 2018-08-20
|
||||||
|
|
||||||
### Improvements
|
### Improvements
|
||||||
- A new "Check Details" page.
|
- A new "Check Details" page.
|
||||||
|
@ -40,6 +40,11 @@ def site_root():
|
|||||||
return settings.SITE_ROOT
|
return settings.SITE_ROOT
|
||||||
|
|
||||||
|
|
||||||
|
@register.simple_tag
|
||||||
|
def site_version():
|
||||||
|
return settings.VERSION
|
||||||
|
|
||||||
|
|
||||||
@register.simple_tag
|
@register.simple_tag
|
||||||
def debug_warning():
|
def debug_warning():
|
||||||
if settings.DEBUG:
|
if settings.DEBUG:
|
||||||
|
@ -34,6 +34,12 @@ DEFAULT_FROM_EMAIL = os.getenv("DEFAULT_FROM_EMAIL", "healthchecks@example.org")
|
|||||||
SUPPORT_EMAIL = os.getenv("SUPPORT_EMAIL")
|
SUPPORT_EMAIL = os.getenv("SUPPORT_EMAIL")
|
||||||
USE_PAYMENTS = envbool("USE_PAYMENTS", "False")
|
USE_PAYMENTS = envbool("USE_PAYMENTS", "False")
|
||||||
REGISTRATION_OPEN = envbool("REGISTRATION_OPEN", "True")
|
REGISTRATION_OPEN = envbool("REGISTRATION_OPEN", "True")
|
||||||
|
VERSION = ""
|
||||||
|
for line in open(os.path.join(BASE_DIR, "CHANGELOG.md")).readlines():
|
||||||
|
if line.startswith("## v"):
|
||||||
|
VERSION = line.split()[1]
|
||||||
|
break
|
||||||
|
|
||||||
|
|
||||||
INSTALLED_APPS = (
|
INSTALLED_APPS = (
|
||||||
"django.contrib.admin",
|
"django.contrib.admin",
|
||||||
|
11
templates/admin/base_site.html
Normal file
11
templates/admin/base_site.html
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{% extends "admin/base_site.html" %}
|
||||||
|
{% load hc_extras %}
|
||||||
|
{% block title %}{% site_name %} Administration{% endblock %}
|
||||||
|
|
||||||
|
{% block branding %}
|
||||||
|
<h1 id="site-name">
|
||||||
|
<a href="{% url 'admin:index' %}">{% site_name %}</a>
|
||||||
|
<small>{% site_version %}</small>
|
||||||
|
</h1>
|
||||||
|
{% endblock %}
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user