From 31cf3fb7f435ef4780b882aa10644a7befc5fb7f Mon Sep 17 00:00:00 2001 From: liamcottle Date: Sat, 23 Mar 2024 23:53:42 +1300 Subject: [PATCH] show when neighbours and position was last updated --- src/public/index.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/public/index.html b/src/public/index.html index 41679db..696af9f 100644 --- a/src/public/index.html +++ b/src/public/index.html @@ -1855,6 +1855,8 @@ tooltip += `

ID: ${node.node_id}`; tooltip += `
Hex ID: ${node.node_id_hex}`; tooltip += `
Updated: ${moment(new Date(node.updated_at)).fromNow()}`; + tooltip += (node.neighbours_updated_at ? `
Neighbours Updated: ${moment(new Date(node.neighbours_updated_at)).fromNow()}` : '') + tooltip += (node.position_updated_at ? `
Position Updated: ${moment(new Date(node.position_updated_at)).fromNow()}` : '') return tooltip;