summaryrefslogtreecommitdiff
path: root/web/templates/partials/buckets-section.html
diff options
context:
space:
mode:
Diffstat (limited to 'web/templates/partials/buckets-section.html')
-rw-r--r--web/templates/partials/buckets-section.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/web/templates/partials/buckets-section.html b/web/templates/partials/buckets-section.html
index 53b1e35..73c4307 100644
--- a/web/templates/partials/buckets-section.html
+++ b/web/templates/partials/buckets-section.html
@@ -23,6 +23,17 @@
<div class="flex items-center justify-between gap-2 text-sm py-1">
<span class="text-white/80">{{.Content}}</span>
<div class="flex items-center gap-3 flex-shrink-0">
+ {{if eq .BucketState "active"}}
+ {{if .CommittedDate}}
+ <button hx-post="/tasks/{{.ID}}/uncommit" hx-swap="none"
+ class="text-xs px-2 py-0.5 rounded bg-sky-500/20 text-sky-200 hover:bg-sky-500/30 transition-colors"
+ title="Remove from today">on today &times;</button>
+ {{else}}
+ <button hx-post="/tasks/{{.ID}}/commit" hx-swap="none"
+ class="text-xs px-2 py-0.5 rounded bg-white/10 text-white/70 hover:bg-white/20 hover:text-white transition-colors"
+ title="Pull into today">+ today</button>
+ {{end}}
+ {{end}}
<span class="text-[10px] uppercase tracking-wider {{if eq .BucketState "active"}}text-green-400{{else}}text-white/30{{end}}">{{.BucketState}}</span>
<button class="text-xs text-red-400/60 hover:text-red-300 transition-colors"
hx-post="/settings/buckets/items/remove"