From 9f5978186ac3de07f4325975fecf4f538fe713b6 Mon Sep 17 00:00:00 2001 From: Sam Scholten Date: Mon, 15 Dec 2025 19:34:17 +1000 Subject: Init v0.1.0 --- cmds/templates/live-feed.html | 158 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 158 insertions(+) create mode 100644 cmds/templates/live-feed.html (limited to 'cmds/templates/live-feed.html') diff --git a/cmds/templates/live-feed.html b/cmds/templates/live-feed.html new file mode 100644 index 0000000..1529ee1 --- /dev/null +++ b/cmds/templates/live-feed.html @@ -0,0 +1,158 @@ +{{define "live-feed"}} + + + + + + {{.Title}} - Live Feed + + + +

{{.Title}}

+ + + + +
+ Filter by date: +
+ Last 24h + Last 7 days + All +
+
+ +
+ {{if .Error}} +
{{.Error}}
+ {{else if .Articles}} +
+ {{len .Articles}} articles (threshold: {{printf "%.2f" .Threshold}}) +
+ {{$threshold := .Threshold}} + {{range .Articles}} + {{$isGood := ge .Score $threshold}} + {{$bgColor := "white"}} + {{if $isGood}} + {{$bgColor = "#e8f5e9"}} + {{else}} + {{$bgColor = "#ffebee"}} + {{end}} + {{$indicator := "✗"}} + {{if $isGood}} + {{$indicator = "✓"}} + {{end}} +
+
+ {{.Title}} +
+ +
+ {{end}} + {{else}} +

No articles to display

+ {{end}} +
+ + +{{end}} -- cgit v1.2.3