summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--components/actions_table.html6
1 files changed, 5 insertions, 1 deletions
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 @@
<th>Name</th>
<th>Magnitude</th>
<th>Repeatable</th>
+ <th>Commit</th>
</tr>
{{range $action := .Actions}}
- {{if eq $action.Type "ActionTypePlus"}}
+ {{if and (eq $action.Type "ActionTypePlus") (not $action.Done)}}
<tr>
<td>{{$action.Name}}</td>
<td>{{$action.Magnitude}}</td>
<td>{{$action.Repeatable}}</td>
+ <td><button>Done it</button></td>
</tr>
{{end}}
{{end}}
@@ -37,6 +39,7 @@
<th>Name</th>
<th>Magnitude</th>
<th>Repeatable</th>
+ <th>Commit</th>
</tr>
{{range $action := .Actions}}
{{if eq $action.Type "ActionTypeMinus"}}
@@ -44,6 +47,7 @@
<td>{{$action.Name}}</td>
<td>{{$action.Magnitude}}</td>
<td>{{$action.Repeatable}}</td>
+ <td><button>Done it</button></td>
</tr>
{{end}}
{{end}}