summaryrefslogtreecommitdiff
path: root/internal/handlers
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-01-19 10:06:06 -1000
committerPeter Stone <thepeterstone@gmail.com>2026-01-19 10:06:06 -1000
commita32f3fe5e1b921e574caf7419b90cd5a2f0730a1 (patch)
treebed6e9267c84d12651114d94703a9ffe7999c69c /internal/handlers
parentbff78e417d2bf41e16eb1e4141bcaaa7d2d566e0 (diff)
Set Quick Add due date default to today
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'internal/handlers')
-rw-r--r--internal/handlers/tabs.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/handlers/tabs.go b/internal/handlers/tabs.go
index ffdabb0..1afdd06 100644
--- a/internal/handlers/tabs.go
+++ b/internal/handlers/tabs.go
@@ -113,9 +113,11 @@ func (h *TabsHandler) HandleTasks(w http.ResponseWriter, r *http.Request) {
data := struct {
Atoms []models.Atom
Boards []models.Board
+ Today string
}{
Atoms: atoms,
Boards: boards,
+ Today: time.Now().Format("2006-01-02"),
}
if err := h.templates.ExecuteTemplate(w, "tasks-tab", data); err != nil {