diff --git a/static/css/my_checks_desktop.css b/static/css/my_checks_desktop.css index 2b9dd414..89b86472 100644 --- a/static/css/my_checks_desktop.css +++ b/static/css/my_checks_desktop.css @@ -60,3 +60,11 @@ table.table tr > th.th-name { tr:hover .check-menu { visibility: visible; } + +#show-urls.active, #show-emails.active { + color: #333; +} + +.my-checks-email { + display: none; +} \ No newline at end of file diff --git a/static/js/checks.js b/static/js/checks.js index d212e9dc..0abbb548 100644 --- a/static/js/checks.js +++ b/static/js/checks.js @@ -106,5 +106,21 @@ $(function () { return false; }); + $("#show-urls").click(function() { + $("#show-urls").addClass("active"); + $(".my-checks-url").show(); + + $("#show-emails").removeClass("active"); + $(".my-checks-email").hide(); + }); + + $("#show-emails").click(function() { + $("#show-urls").removeClass("active"); + $(".my-checks-url").hide(); + + $("#show-emails").addClass("active"); + $(".my-checks-email").show(); + }); + }); \ No newline at end of file diff --git a/templates/front/my_checks_desktop.html b/templates/front/my_checks_desktop.html index 3d03de84..c4de10be 100644 --- a/templates/front/my_checks_desktop.html +++ b/templates/front/my_checks_desktop.html @@ -4,7 +4,10 @@ Name - URL + + URL + Email + Period
Grace @@ -34,7 +37,8 @@ - {{ check.url }} + {{ check.url }} + {{ check.email }}