intake/web/html/feed.html

41 lines
1.0 KiB
HTML
Raw Normal View History

{{ 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 22:37:36 +00:00
<span class="feed-controls flex-between">
2025-02-07 16:17:51 +00:00
<a href="?hidden={{ .ShowHidden }}&page={{ page .Page -1 }}&count={{ .Count }}">&lt;--</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 }}">--&gt;</a>
2025-01-28 01:05:20 +00:00
</span>
</article>
{{ if .Items }}
{{ range .Items }}
{{ template "item" . }}
{{ end }}
<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>
</article>
{{ else }}
<article class="center">
2025-02-06 15:49:27 +00:00
<span class="feed-controls">Feed is empty</span>
</article>
{{ end }}
{{/* end if .Items */}}
{{ end }}
{{/* end define "content" */}}