diff --git a/hc/front/views.py b/hc/front/views.py index c09c58fc..8145da46 100644 --- a/hc/front/views.py +++ b/hc/front/views.py @@ -51,7 +51,8 @@ def my_checks(request): "now": timezone.now(), "tags": counter.most_common(), "down_tags": down_tags, - "grace_tags": grace_tags + "grace_tags": grace_tags, + "ping_endpoint": settings.PING_ENDPOINT } return render(request, "front/my_checks.html", ctx) diff --git a/static/css/my_checks_desktop.css b/static/css/my_checks_desktop.css index 8a3976d5..79a3ebcc 100644 --- a/static/css/my_checks_desktop.css +++ b/static/css/my_checks_desktop.css @@ -62,18 +62,27 @@ table.table tr > th.th-name { visibility: hidden; } +.show-usage { + opacity: 0 +} + tr:hover .check-menu { visibility: visible; } -#show-urls.active, #show-emails.active { - color: #333; +tr:hover .show-usage { + opacity: 1 } #checks-table .url-cell { white-space: nowrap; } +.url-cell .base { + color: #888; +} + + .my-checks-url { font-family: "Lucida Console", Monaco, monospace; font-size: 11.7px; diff --git a/static/js/checks.js b/static/js/checks.js index 3b6c64c4..2a511966 100644 --- a/static/js/checks.js +++ b/static/js/checks.js @@ -176,7 +176,7 @@ $(function () { }); - $(".my-checks-url").click(function(e) { + $(".show-usage").click(function(e) { var a = e.target; var url = a.getAttribute("href"); var email = a.getAttribute("data-email"); diff --git a/templates/front/my_checks_desktop.html b/templates/front/my_checks_desktop.html index 703c123c..04236c9a 100644 --- a/templates/front/my_checks_desktop.html +++ b/templates/front/my_checks_desktop.html @@ -1,5 +1,4 @@ {% load hc_extras humanize %} - @@ -39,13 +38,14 @@