summaryrefslogtreecommitdiff
path: root/web/templates/partials
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-03-22 23:45:19 +0000
committerPeter Stone <thepeterstone@gmail.com>2026-03-22 23:45:19 +0000
commit8abc63efdbc0bb96cd6c9aa99d6e9166e0bcabae (patch)
treef4d6a082eed9b10bc67436a3ca5188e0182961eb /web/templates/partials
parent11b905fd437d651b2e39745aa82a5dd36f70331e (diff)
chore: unify and centralize agent configuration in .agent/
Diffstat (limited to 'web/templates/partials')
-rw-r--r--web/templates/partials/timeline-tab.html9
1 files changed, 5 insertions, 4 deletions
diff --git a/web/templates/partials/timeline-tab.html b/web/templates/partials/timeline-tab.html
index 4979744..c82513d 100644
--- a/web/templates/partials/timeline-tab.html
+++ b/web/templates/partials/timeline-tab.html
@@ -113,8 +113,7 @@
hx-target="#tab-content"
hx-swap="innerHTML">
- <!-- Today Section (Calendar View) -->
- {{if .TodayItems}}
+ <!-- Today Section (Calendar View) — always shown so the NOW line is visible -->
<details class="group" open>
<summary class="text-lg font-semibold mb-3 flex items-center gap-2 text-white/90 cursor-pointer hover:text-white sticky top-0 bg-black/20 backdrop-blur-md py-2 z-10 rounded-lg px-2 list-none">
<span>📅</span> {{.TodayLabel}}
@@ -125,6 +124,8 @@
</summary>
<!-- Overdue + All-Day + Untimed Items Section -->
+ {{$hasUntimed := false}}{{range .TodayItems}}{{if or .IsOverdue .IsAllDay}}{{$hasUntimed = true}}{{end}}{{end}}
+ {{if $hasUntimed}}
<div class="mb-4 flex flex-wrap gap-1 p-2 bg-black/20 rounded-lg" id="untimed-section">
{{range .TodayItems}}
{{if or .IsOverdue .IsAllDay}}
@@ -151,6 +152,7 @@
{{end}}
{{end}}
</div>
+ {{end}}
<!-- Calendar Grid (dynamic hours) -->
<div class="calendar-grid" id="today-calendar" data-start-hour="{{.TodayStartHour}}" data-now-hour="{{.NowHour}}" data-now-minute="{{.NowMinute}}">
@@ -200,7 +202,6 @@
</div>
</details>
- {{end}}
<!-- Tomorrow Section (Calendar View) -->
{{if .TomorrowItems}}
@@ -305,7 +306,7 @@
</details>
{{end}}
- {{if and (not .TodayItems) (not .TomorrowItems) (not .LaterItems)}}
+ {{if and (not .TomorrowItems) (not .LaterItems)}}
<div class="text-center py-8 text-white/50">
<p>No items found for the selected range.</p>
</div>