diff options
author | Pim van den Berg | 2014-12-13 13:40:36 +0100 |
---|---|---|
committer | Pim van den Berg | 2014-12-13 13:43:26 +0100 |
commit | 6c39bf06e43fd97fc821cf1dcd11636532512ff0 (patch) | |
tree | 543a69efd7bd399a6e125b7a523fe4cf5fc8caf3 /index.php | |
parent | Adding option to show time since last update on dashboard. (diff) | |
download | apt-panopticon_cgp-6c39bf06e43fd97fc821cf1dcd11636532512ff0.zip apt-panopticon_cgp-6c39bf06e43fd97fc821cf1dcd11636532512ff0.tar.gz apt-panopticon_cgp-6c39bf06e43fd97fc821cf1dcd11636532512ff0.tar.bz2 apt-panopticon_cgp-6c39bf06e43fd97fc821cf1dcd11636532512ff0.tar.xz |
dashboard: make timeago dynamic using jquery + timeago
Diffstat (limited to '')
-rw-r--r-- | index.php | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -26,4 +26,13 @@ if ($uhosts) { | |||
26 | host_summary('uncategorized', $uhosts); | 26 | host_summary('uncategorized', $uhosts); |
27 | } | 27 | } |
28 | 28 | ||
29 | echo <<<EOT | ||
30 | <script> | ||
31 | jQuery(document).ready(function() { | ||
32 | jQuery("time.timeago").timeago(); | ||
33 | }); | ||
34 | </script> | ||
35 | |||
36 | EOT; | ||
37 | |||
29 | html_end(); | 38 | html_end(); |