Browse Source

Timezones were missing in Details page, "Change Schedule" dialog. Fixed.

pull/193/head
Pēteris Caune 6 years ago
parent
commit
cf37439877
No known key found for this signature in database GPG Key ID: E28D7679E9A9EDE2
3 changed files with 8 additions and 1 deletions
  1. +4
    -0
      CHANGELOG.md
  2. +2
    -0
      hc/front/tests/test_details.py
  3. +2
    -1
      hc/front/views.py

+ 4
- 0
CHANGELOG.md View File

@ -6,6 +6,10 @@ All notable changes to this project will be documented in this file.
### Improvements
- Content updates in the "Welcome" page.
### Bug Fixes
- Timezones were missing in the "Change Schedule" dialog, fixed
## 1.1.0 - 2018-08-20
### Improvements


+ 2
- 0
hc/front/tests/test_details.py View File

@ -23,6 +23,8 @@ class DetailsTestCase(BaseTestCase):
self.client.login(username="[email protected]", password="password")
r = self.client.get(self.url)
self.assertContains(r, "How To Ping", status_code=200)
# The page should contain timezone strings
self.assertContains(r, "Europe/Riga")
def test_it_checks_ownership(self):
self.client.login(username="[email protected]", password="password")


+ 2
- 1
hc/front/views.py View File

@ -371,7 +371,8 @@ def details(request, code):
ctx = {
"page": "details",
"check": check,
"channels": channels
"channels": channels,
"timezones": all_timezones
}
return render(request, "front/details.html", ctx)


Loading…
Cancel
Save