From 9c8cbfd8ffc8842963abde0aff362f9451118387 Mon Sep 17 00:00:00 2001 From: sneak Date: Thu, 22 May 2025 09:15:31 -0700 Subject: [PATCH] Display relative timestamps in dashboard --- templates/index.html | 64 +++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 61 insertions(+), 3 deletions(-) diff --git a/templates/index.html b/templates/index.html index 3309f2e..2bc90f2 100644 --- a/templates/index.html +++ b/templates/index.html @@ -85,9 +85,14 @@ .timestamp { font-size: 0.9em; color: #7f8c8d; - min-width: 180px; + min-width: 120px; font-family: monospace; } + .timestamp[title] { + cursor: help; + text-decoration: none; + border-bottom: 1px dotted #7f8c8d; + } .source { font-weight: bold; color: #2980b9; @@ -213,7 +218,7 @@ {{.Source}} {{.Title}} {{.Summary}} - {{.FirstSeen.Format "2006-01-02 15:04:05 MST"}} + {{else}} @@ -241,7 +246,7 @@ {{range .History}} {{.ID}} - {{.BroadcastTime.Format "2006-01-02 15:04:05 MST"}} + {{.Importance}} {{.Source}} {{.Title}} @@ -290,5 +295,58 @@ + + \ No newline at end of file