mirror of
https://github.com/vladmandic/automatic
synced 2026-08-30 00:50:59 +02:00
add online/offline since
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -2,11 +2,13 @@ async function updateIndicator(online, data, msg) {
|
||||
const el = document.getElementById('logo_nav');
|
||||
if (!el || !data) return;
|
||||
const status = online ? '<b style="color:lime">online</b>' : '<b style="color:darkred">offline</b>';
|
||||
const date = new Date();
|
||||
const template = `
|
||||
Version: <b>${data.updated}</b><br>
|
||||
Commit: <b>${data.hash}</b><br>
|
||||
Branch: <b>${data.branch}</b><br>
|
||||
Status: ${status}<br>
|
||||
Since: ${date.toLocaleString()}<br>
|
||||
`;
|
||||
if (online) {
|
||||
el.dataset.hint = template;
|
||||
|
||||
Reference in New Issue
Block a user