diff options
Diffstat (limited to 'web/templates/partials/tasks-tab.html')
| -rw-r--r-- | web/templates/partials/tasks-tab.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/web/templates/partials/tasks-tab.html b/web/templates/partials/tasks-tab.html index 1ac6703..a2780ff 100644 --- a/web/templates/partials/tasks-tab.html +++ b/web/templates/partials/tasks-tab.html @@ -31,6 +31,19 @@ <div class="flex flex-wrap items-center gap-2 mt-1 text-xs text-white/50"> <span class="text-purple-300/80">{{.ProjectName}} · {{.Position}}/{{.Total}}</span> {{if eq .Chain.Status "paused"}}<span class="text-amber-300/80">paused</span>{{end}} + {{if and .CurrentTask (eq .Chain.Status "active")}} + {{if .CurrentTask.CommittedDate}} + <button hx-post="/tasks/{{.CurrentTask.ID}}/uncommit" + hx-swap="none" + class="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 ×</button> + {{else}} + <button hx-post="/tasks/{{.CurrentTask.ID}}/commit" + hx-swap="none" + class="px-2 py-0.5 rounded bg-white/10 text-white/70 hover:bg-white/20 hover:text-white transition-colors" + title="Pull this step into today">+ today</button> + {{end}} + {{end}} </div> </div> </div> |
