diff options
author | GrailFinder <wohilas@gmail.com> | 2024-06-05 08:22:36 +0300 |
---|---|---|
committer | GrailFinder <wohilas@gmail.com> | 2024-06-05 08:22:36 +0300 |
commit | 01f9a9f5d71450a0c80195058245fdebe88796bd (patch) | |
tree | fd50f3fdd0585fd1ff6cf431af613fa01b86e439 /components/recommendation.html | |
parent | 60fc1773241195f4988ed8066e019bbc42267085 (diff) |
Feat: recommendations for anon and user
Diffstat (limited to 'components/recommendation.html')
-rw-r--r-- | components/recommendation.html | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/components/recommendation.html b/components/recommendation.html index 5036088..17e622a 100644 --- a/components/recommendation.html +++ b/components/recommendation.html @@ -1,4 +1,7 @@ -{{define "recommentdation"}} +{{define "recommendation"}} +<hr> +<h4>Recommendations</h4> +<p>Some actions used by other users for inspiration.</p> <div class="actiontable"> <p>ActionTypePlus</p> <table> @@ -6,10 +9,10 @@ <th>Name</th> <th>Magnitude</th> <th>Repeatable</th> - <th>Commit</th> + <th>Copy</th> </tr> - {{range $action := .Actions}} - {{if and (eq $action.Type "ActionTypePlus") (or (not $action.Done) ($action.Repeatable))}} + {{range $action := .}} + {{if (eq $action.Type "ActionTypePlus")}} <form hx-post="/done" hx-target="#ancestor" hx-swap="outerHTML"> <tr> <td><input class="action_name" name="name" value={{$action.Name}} type="hidden" readonly />{{$action.Name}}</td> @@ -29,9 +32,9 @@ <th>Name</th> <th>Magnitude</th> <th>Repeatable</th> - <th>Commit</th> + <th>Copy</th> </tr> - {{range $action := .Actions}} + {{range $action := .}} {{if eq $action.Type "ActionTypeMinus"}} <form hx-post="/done" hx-target="#ancestor" hx-swap="outerHTML"> <tr> |