diff --git a/static/js/checks.js b/static/js/checks.js index 9d5b9036..d212e9dc 100644 --- a/static/js/checks.js +++ b/static/js/checks.js @@ -8,10 +8,10 @@ $(function () { var w = total; var result = ""; - if (w) result += w + (w == 1 ? " week " : " weeks "); - if (d) result += d + (d == 1 ? " day " : " days "); - if (h) result += h + (h == 1 ? " hour " : " hours "); - if (m) result += m + (m == 1 ? " minute " : " minutes "); + if (w) result += w + (w === 1 ? " week " : " weeks "); + if (d) result += d + (d === 1 ? " day " : " days "); + if (h) result += h + (h === 1 ? " hour " : " hours "); + if (m) result += m + (m === 1 ? " minute " : " minutes "); return result; } diff --git a/static/js/log.js b/static/js/log.js new file mode 100644 index 00000000..a7e89678 --- /dev/null +++ b/static/js/log.js @@ -0,0 +1,3 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip(); +}); \ No newline at end of file diff --git a/templates/front/log.html b/templates/front/log.html index 84ba0b33..b620b679 100644 --- a/templates/front/log.html +++ b/templates/front/log.html @@ -7,29 +7,35 @@ {% block content %}
Transport | Time | Remote IP | -Method | User Agent |
---|---|---|---|---|
+ {% if ping.scheme == "email" %} + Email + {% elif ping.scheme == "http" %} + HTTP + {% elif ping.scheme == "https" %} + HTTPS + {% endif %} + | - {{ ping.created }} + title="{{ ping.created }} GMT"> + {{ ping.created|naturaltime }} | {{ ping.remote_addr }} | -- {{ ping.method }} - | {{ ping.ua }} |