aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/html.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/html.inc.php')
-rw-r--r--inc/html.inc.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/inc/html.inc.php b/inc/html.inc.php
index a263a58..5bf0ff0 100644
--- a/inc/html.inc.php
+++ b/inc/html.inc.php
@@ -47,6 +47,8 @@ EOT;
47 } 47 }
48 48
49echo <<<EOT 49echo <<<EOT
50 <script type="text/javascript" src="//code.jquery.com/jquery-2.1.1.min.js"></script>
51 <script type="text/javascript" src="{$html_weburl}js/jquery.timeago.js"></script>
50</head> 52</head>
51<body> 53<body>
52 54
@@ -291,7 +293,8 @@ function host_summary($cat, $hosts) {
291 elseif ($time > 60) 293 elseif ($time > 60)
292 $class .= ' warn'; 294 $class .= ' warn';
293 295
294 printf('<td class="%s">%d seconds ago</td>',$class, $time); 296 printf('<td class="%s"><time class="timeago" datetime="%s">%d seconds ago</time></td>',
297 $class, date('c', $rrd_info['last_update']), $time);
295 } 298 }
296 299
297 print "</tr>\n"; 300 print "</tr>\n";