diff --git a/static/css/details.css b/static/css/details.css index 578372e4..030a833c 100644 --- a/static/css/details.css +++ b/static/css/details.css @@ -6,6 +6,10 @@ margin-bottom: 24px; } +#details-head h1 small { + font-size: 12px; +} + .details-block .status { font-size: 32px; width: 40px; diff --git a/static/js/details.js b/static/js/details.js index 6187ed75..b92192f2 100644 --- a/static/js/details.js +++ b/static/js/details.js @@ -6,6 +6,13 @@ $(function () { return false; }); + $("#edit-desc").click(function() { + $('#update-name-modal').modal("show"); + $("#update-desc-input").focus(); + + return false; + }); + $("#pause").click(function(e) { $("#pause-form").submit(); return false; diff --git a/templates/front/details.html b/templates/front/details.html index 74676335..44ef2ef9 100644 --- a/templates/front/details.html +++ b/templates/front/details.html @@ -10,7 +10,7 @@

{{ check.name_then_code }} - + (edit…)

{{ check.project }} {% for tag in check.tags_list %} @@ -27,13 +27,19 @@ {% endif %}
- {% if check.desc %}

Description

+ {% if check.desc %} {{ check.desc|linebreaks|urlize }} +
+ +
+ {% else %} + Add description… + {% endif %}
- {% endif %} -

How To Ping

diff --git a/templates/front/update_name_modal.html b/templates/front/update_name_modal.html index 52dca802..04956aa9 100644 --- a/templates/front/update_name_modal.html +++ b/templates/front/update_name_modal.html @@ -63,6 +63,9 @@ id="update-desc-input" class="form-control" rows="5" + placeholder="What's being monitored? +What to do when this check goes down? +Where to find more information?" name="desc">{{ check.desc }}