From 4a42a4465c8ff5496229f8883b9d1532bf7c9cab Mon Sep 17 00:00:00 2001 From: GrailFinder Date: Sun, 7 Apr 2024 09:53:04 +0300 Subject: Feat: db connection and migrations --- components/actions_table.html | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'components/actions_table.html') diff --git a/components/actions_table.html b/components/actions_table.html index f862906..8b151e5 100644 --- a/components/actions_table.html +++ b/components/actions_table.html @@ -1,12 +1,12 @@ {{define "UserScore"}} - + - + @@ -21,13 +21,15 @@ {{range $action := .Actions}} - {{if and (eq $action.Type "ActionTypePlus") (not $action.Done)}} + {{if and (eq $action.Type "ActionTypePlus") (or (not $action.Done) ($action.Repeatable))}} + - + - + + {{end}} {{end}}
IDUsername BurnTime Score
{{.ID}}{{.Username}} {{.BurnTime}} {{.Score}}
Commit
{{$action.Name}}{{$action.Name}} {{$action.Magnitude}} {{$action.Repeatable}}
@@ -43,12 +45,15 @@ {{range $action := .Actions}} {{if eq $action.Type "ActionTypeMinus"}} +
+ {{$action.Name}} {{$action.Name}} {{$action.Magnitude}} {{$action.Repeatable}} - + +
{{end}} {{end}} -- cgit v1.2.3