aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/index.php
diff options
context:
space:
mode:
authorPim van den Berg2014-12-13 13:52:46 +0100
committerPim van den Berg2014-12-13 13:52:46 +0100
commitf57bb64e8ef7b5effa8cc5962ef75a426460cd6c (patch)
treea9465c2291da0d98b040c0d510f34b6cb3b567cf /index.php
parentdashboard: timeago: show seconds, refresh every 5 seconds (diff)
downloadapt-panopticon_cgp-f57bb64e8ef7b5effa8cc5962ef75a426460cd6c.zip
apt-panopticon_cgp-f57bb64e8ef7b5effa8cc5962ef75a426460cd6c.tar.gz
apt-panopticon_cgp-f57bb64e8ef7b5effa8cc5962ef75a426460cd6c.tar.bz2
apt-panopticon_cgp-f57bb64e8ef7b5effa8cc5962ef75a426460cd6c.tar.xz
dashboard: showtime: load jquery + timeago.js when config is set
Diffstat (limited to 'index.php')
-rw-r--r--index.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/index.php b/index.php
index 9c2319b..eb897ae 100644
--- a/index.php
+++ b/index.php
@@ -26,7 +26,8 @@ if ($uhosts) {
26 host_summary('uncategorized', $uhosts); 26 host_summary('uncategorized', $uhosts);
27} 27}
28 28
29echo <<<EOT 29if ($CONFIG['showtime']) {
30 echo <<<EOT
30<script> 31<script>
31jQuery(document).ready(function() { 32jQuery(document).ready(function() {
32 jQuery("time.timeago").timeago(); 33 jQuery("time.timeago").timeago();
@@ -34,5 +35,6 @@ jQuery(document).ready(function() {
34</script> 35</script>
35 36
36EOT; 37EOT;
38}
37 39
38html_end(); 40html_end();