diff --git a/static/css/checks-list.css b/static/css/checks-list.css new file mode 100644 index 00000000..6ddbadb6 --- /dev/null +++ b/static/css/checks-list.css @@ -0,0 +1,45 @@ +#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 .glyphicon { + position: relative; + top: 11px; + margin: 0 10px; + +} + +#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; +} + +#checks-list .unnamed { + color: #999; + font-style: italic; +} + +#checks-list th { + width: 100px; +} \ No newline at end of file diff --git a/static/css/style.css b/static/css/style.css index 022595ce..33fab815 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -131,7 +131,7 @@ table.table tr > th.th-name { vertical-align: middle; } -.my-checks-name { +#checks-table .my-checks-name { border: 1px solid rgba(0, 0, 0, 0); padding: 6px; display: block; @@ -168,13 +168,13 @@ td.inactive .popover { padding-left: 15px; } -.timeout_grace { +#checks-table .timeout-grace { border: 1px solid rgba(0, 0, 0, 0); padding: 6px; display: block; } -#checks-table tr:hover .timeout_grace { +#checks-table tr:hover .timeout-grace { border: 1px dotted #AAA; } diff --git a/static/js/checks.js b/static/js/checks.js index b3213c39..9d5b9036 100644 --- a/static/js/checks.js +++ b/static/js/checks.js @@ -80,11 +80,12 @@ $(function () { $("#update-name-form").attr("action", $this.data("url")); $("#update-name-input").val($this.data("name")); $('#update-name-modal').modal("show"); + $("#update-name-input").focus(); return false; }); - $(".timeout_grace").click(function() { + $(".timeout-grace").click(function() { var $this = $(this); $("#update-timeout-form").attr("action", $this.data("url")); diff --git a/templates/base.html b/templates/base.html index 895c3985..a0f800a8 100644 --- a/templates/base.html +++ b/templates/base.html @@ -5,6 +5,7 @@