diff --git a/hc/front/tests/test_my_checks.py b/hc/front/tests/test_my_checks.py index 24d2dde9..f966ccda 100644 --- a/hc/front/tests/test_my_checks.py +++ b/hc/front/tests/test_my_checks.py @@ -24,13 +24,8 @@ class MyChecksTestCase(BaseTestCase): self.client.login(username="alice@example.org", password="password") r = self.client.get("/checks/") - - # Desktop self.assertContains(r, "icon-up") - # Mobile - self.assertContains(r, "label-up") - def test_it_shows_red_check(self): self.check.last_ping = timezone.now() - td(days=3) self.check.status = "up" @@ -38,13 +33,8 @@ class MyChecksTestCase(BaseTestCase): self.client.login(username="alice@example.org", password="password") r = self.client.get("/checks/") - - # Desktop self.assertContains(r, "icon-down") - # Mobile - self.assertContains(r, "label-down") - def test_it_shows_amber_check(self): self.check.last_ping = timezone.now() - td(days=1, minutes=30) self.check.status = "up" @@ -52,13 +42,8 @@ class MyChecksTestCase(BaseTestCase): self.client.login(username="alice@example.org", password="password") r = self.client.get("/checks/") - - # Desktop self.assertContains(r, "icon-grace") - # Mobile - self.assertContains(r, "label-grace") - def test_it_hides_add_check_button(self): self.profile.check_limit = 0 self.profile.save() diff --git a/static/css/my_checks_mobile.css b/static/css/my_checks_mobile.css deleted file mode 100644 index 6ca7e0fa..00000000 --- a/static/css/my_checks_mobile.css +++ /dev/null @@ -1,63 +0,0 @@ -#checks-list { - list-style: none; - padding: 0; - margin-top: 48px; -} - -#checks-list li { - margin-bottom: 48px; - position: relative; -} - -#checks-list h2 { - font-size: 18px; - font-weight: 400; -} - -#checks-list h2 code { - display: block; - font-size: 12px; - margin-top: 4px; - padding: 0; -} - -#checks-list .remove-link { - color: #AAA; - position: absolute; - top: 0; - right: 0; - font-size: 20px; -} - -#checks-list .unnamed { - color: #999; - font-style: italic; -} - -#checks-list th { - width: 100px; -} - -#checks-list .label { - text-transform: uppercase; -} - -.label-new, .label-paused { - background-color: #777777; -} - -.label-up { - background-color: #22bc66; -} - -.label-grace { - background-color: #f0ad4e; -} - -.label-down { - background-color: #d9534f; -} - -#checks-list .base { - color: #888; -} diff --git a/static/js/checks.js b/static/js/checks.js index 4ea2d939..aa9fbafb 100644 --- a/static/js/checks.js +++ b/static/js/checks.js @@ -328,7 +328,6 @@ $(function () { if (lastPing[el.code] != el.last_ping) { lastPing[el.code] = el.last_ping; $("#lpd-" + el.code).html(el.last_ping); - $("#lpm-" + el.code).html(el.last_ping); } } diff --git a/templates/base.html b/templates/base.html index 6567b73d..2841eed4 100644 --- a/templates/base.html +++ b/templates/base.html @@ -30,7 +30,6 @@ - diff --git a/templates/front/my_checks.html b/templates/front/my_checks.html index 56b7e202..6915bed9 100644 --- a/templates/front/my_checks.html +++ b/templates/front/my_checks.html @@ -17,7 +17,6 @@
{% if checks %} - {% include "front/my_checks_mobile.html" %} {% include "front/my_checks_desktop.html" %} {% else %}
You don't have any checks yet.
diff --git a/templates/front/my_checks_desktop.html b/templates/front/my_checks_desktop.html index f2768646..a3f6ca7c 100644 --- a/templates/front/my_checks_desktop.html +++ b/templates/front/my_checks_desktop.html @@ -1,5 +1,5 @@ {% load hc_extras staticfiles %} - + - - - + + @@ -38,7 +38,7 @@ {% endif %} - + {% for check in checks %} - - - -
@@ -17,9 +17,9 @@ {% endif %} Ping URLIntegrations +
+ + + +