2025-01-25 05:27:26 +00:00
|
|
|
{{ define "title" }}{{ if .Items }}({{ len .Items }}) {{ end }}Intake{{ end }}
|
|
|
|
|
2025-01-28 01:05:20 +00:00
|
|
|
{{ define "content" -}}
|
|
|
|
<article class="center">
|
2025-02-07 16:17:51 +00:00
|
|
|
<span class="feed-controls" style="display: flex; justify-content: space-between;">
|
|
|
|
<a href="?hidden={{ .ShowHidden }}&page={{ page .Page -1 }}&count={{ .Count }}"><--</a>
|
2025-01-28 05:08:33 +00:00
|
|
|
<a href="/">Home</a>
|
2025-02-07 16:17:51 +00:00
|
|
|
<span>
|
|
|
|
{{ if .ShowHidden -}}
|
|
|
|
[ <a href="?hidden=0&page={{ .Page }}&count={{ .Count }}">Active</a> | All ]
|
|
|
|
{{- else -}}
|
|
|
|
[ Active | <a href="?hidden=1&page={{ .Page }}&count={{ .Count }}">All</a> ]
|
|
|
|
{{- end }}
|
|
|
|
</span>
|
|
|
|
<a href="?hidden={{ .ShowHidden }}&page={{ page .Page 1 }}&count={{ .Count }}">--></a>
|
2025-01-28 01:05:20 +00:00
|
|
|
</span>
|
|
|
|
</article>
|
|
|
|
|
|
|
|
{{ if .Items }}
|
|
|
|
{{ range .Items }}
|
|
|
|
{{ template "item" . }}
|
|
|
|
{{ end }}
|
2025-01-25 05:27:26 +00:00
|
|
|
|
|
|
|
<article class="center">
|
2025-01-30 06:21:17 +00:00
|
|
|
<button
|
|
|
|
hx-post="/mass-deactivate"
|
|
|
|
hx-vals='{{ massDeacVars .Items }}'
|
|
|
|
hx-confirm="Deactivate {{ len .Items }} items?"
|
|
|
|
>Deactivate All</button>
|
2025-01-25 05:27:26 +00:00
|
|
|
</article>
|
|
|
|
|
|
|
|
{{ else }}
|
|
|
|
<article class="center">
|
2025-02-06 15:49:27 +00:00
|
|
|
<span class="feed-controls">Feed is empty</span>
|
2025-01-25 05:27:26 +00:00
|
|
|
</article>
|
|
|
|
{{ end }}
|
|
|
|
{{/* end if .Items */}}
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
{{/* end define "content" */}}
|