From 6fae7099dd2f2632aff9db3d6c04d8e66396f02d Mon Sep 17 00:00:00 2001 From: GrailFinder Date: Wed, 3 Apr 2024 15:16:47 +0300 Subject: Enha: and cond; done button --- components/actions_table.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/actions_table.html b/components/actions_table.html index f0c6572..f862906 100644 --- a/components/actions_table.html +++ b/components/actions_table.html @@ -18,13 +18,15 @@ Name Magnitude Repeatable + Commit {{range $action := .Actions}} - {{if eq $action.Type "ActionTypePlus"}} + {{if and (eq $action.Type "ActionTypePlus") (not $action.Done)}} {{$action.Name}} {{$action.Magnitude}} {{$action.Repeatable}} + {{end}} {{end}} @@ -37,6 +39,7 @@ Name Magnitude Repeatable + Commit {{range $action := .Actions}} {{if eq $action.Type "ActionTypeMinus"}} @@ -44,6 +47,7 @@ {{$action.Name}} {{$action.Magnitude}} {{$action.Repeatable}} + {{end}} {{end}} -- cgit v1.2.3