diff --git a/hc/api/management/commands/ensuretriggers.py b/hc/api/management/commands/ensuretriggers.py index e180fa5b..f9406aea 100644 --- a/hc/api/management/commands/ensuretriggers.py +++ b/hc/api/management/commands/ensuretriggers.py @@ -22,6 +22,6 @@ $update_alert_after$ LANGUAGE plpgsql; DROP TRIGGER IF EXISTS update_alert_after ON api_check; CREATE TRIGGER update_alert_after -BEFORE INSERT OR UPDATE OF last_ping, timeout ON api_check +BEFORE INSERT OR UPDATE OF last_ping, timeout, grace ON api_check FOR EACH ROW EXECUTE PROCEDURE update_alert_after(); """) diff --git a/static/css/style.css b/static/css/style.css index 71c577b6..9d4a7a93 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -175,6 +175,10 @@ tr:hover .check-menu { } +#update-timeout-modal .modal-body { + padding-top: 40px; +} + .update-timeout-info { line-height: 22px; } @@ -205,9 +209,28 @@ tr:hover .check-menu { } #grace-slider { - margin: 20px 50px 60px 50px; + margin: 20px 50px 110px 50px; } #grace-slider.noUi-connect { background: #f0ad4e; } + +#frequency-slider .noUi-value, #grace-slider .noUi-value { + width: 60px; + margin-left: -30px; +} + +.update-timeout-terms { + color: #999; +} + +.update-timeout-terms p { + margin: 0; +} + + +.update-timeout-terms span { + font-weight: bold; +} + diff --git a/templates/front/my_checks.html b/templates/front/my_checks.html index 6584bf53..24fc3316 100644 --- a/templates/front/my_checks.html +++ b/templates/front/my_checks.html @@ -114,9 +114,11 @@