From fa95c71494458070b78270e3d9170076028fc974 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Sun, 25 Jan 2026 20:04:03 -1000 Subject: Refactor: extract helpers and clean up hardcoded HTML - Extract parseEventTime() and deduplicateEvents() in google_calendar.go - Add scanTask() and scanTasks() SQL helpers in sqlite.go - Move completed-atom HTML to partial template - Add loadTestTemplates() test helper for template-dependent tests Co-Authored-By: Claude Opus 4.5 --- web/templates/partials/completed-atom.html | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 web/templates/partials/completed-atom.html (limited to 'web/templates') diff --git a/web/templates/partials/completed-atom.html b/web/templates/partials/completed-atom.html new file mode 100644 index 0000000..74b605d --- /dev/null +++ b/web/templates/partials/completed-atom.html @@ -0,0 +1,17 @@ +{{define "completed-atom"}} +
+
+ + +
+

{{.Title}}

+
Completed - click to undo
+
+
+
+{{end}} -- cgit v1.2.3