From d0ec9f38b17dadf4c244904e28e064d6ad7c5674 Mon Sep 17 00:00:00 2001 From: GrailFinder Date: Wed, 29 May 2024 08:42:36 +0300 Subject: Feat: add recommendations [wip] --- components/recommendation.html | 48 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 components/recommendation.html (limited to 'components') diff --git a/components/recommendation.html b/components/recommendation.html new file mode 100644 index 0000000..5036088 --- /dev/null +++ b/components/recommendation.html @@ -0,0 +1,48 @@ +{{define "recommentdation"}} +
+

ActionTypePlus

+ + + + + + + + {{range $action := .Actions}} + {{if and (eq $action.Type "ActionTypePlus") (or (not $action.Done) ($action.Repeatable))}} + + + + + + + + + {{end}} + {{end}} +
NameMagnitudeRepeatableCommit
{{$action.Name}}{{$action.Magnitude}}{{$action.Repeatable}}
+
+
+

ActionTypeMinus

+ + + + + + + + {{range $action := .Actions}} + {{if eq $action.Type "ActionTypeMinus"}} + + + + + + + + + {{end}} + {{end}} +
NameMagnitudeRepeatableCommit
{{$action.Name}}{{$action.Magnitude}}{{$action.Repeatable}}
+
+{{end}} -- cgit v1.2.3