aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/index.php
diff options
context:
space:
mode:
authorPim van den Berg2014-12-13 13:40:36 +0100
committerPim van den Berg2014-12-13 13:43:26 +0100
commit6c39bf06e43fd97fc821cf1dcd11636532512ff0 (patch)
tree543a69efd7bd399a6e125b7a523fe4cf5fc8caf3 /index.php
parentAdding option to show time since last update on dashboard. (diff)
downloadapt-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.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/index.php b/index.php
index 78db85d..9c2319b 100644
--- a/index.php
+++ b/index.php
@@ -26,4 +26,13 @@ if ($uhosts) {
26 host_summary('uncategorized', $uhosts); 26 host_summary('uncategorized', $uhosts);
27} 27}
28 28
29echo <<<EOT
30<script>
31jQuery(document).ready(function() {
32 jQuery("time.timeago").timeago();
33});
34</script>
35
36EOT;
37
29html_end(); 38html_end();