This commit is contained in:
Emanuel Turis
2023-10-20 07:46:32 +03:00
parent ccb0c914e5
commit d1f37d7b0e
12 changed files with 607 additions and 11 deletions

15
templates/count.html Normal file
View File

@@ -0,0 +1,15 @@
{{ define "TotalCount" }}
<p id="total" {{ if .SwapOOB }}hx-swap-oob="innerHTML:#total"{{ end }}>
Total tasks:
{{ .Count }}
</p>
{{ end }}
{{ define "CompletedCount" }}
<p
id="completed"
{{ if .SwapOOB }}hx-swap-oob="innerHTML:#completed"{{ end }}
>
Completed tasks: {{ .Count }}
</p>
{{ end }}