bloat/templates/timeline.tmpl
2024-06-17 14:48:13 +00:00

39 lines
927 B
Cheetah

{{with .Data}}
{{template "header.tmpl" (WithContext .CommonData $.Ctx)}}
<h1>{{.Title}} <a class="page-link" href="{{.RefreshLink}}" accesskey="T" title="Refresh (T)">refresh</a></h1>
{{if eq .Type "remote"}}
<form action="/timeline/remote" method="GET">
<span>
<label for="q"> Instance </label>
<input type="text" id="q" name="q" value="{{.Q}}">
</span>
<button type="submit"> Submit </button>
</form>
{{end}}
{{if eq .Type "hashtag"}}
<form action="/timeline/hashtag" method="GET">
<span>
<label for="q"> Tag </label>
<input type="text" id="q" name="q" value="{{.Q}}">
</span>
<button type="submit"> Submit </button>
</form>
{{end}}
{{range .Statuses}}
{{template "status.tmpl" (WithContext . $.Ctx)}}
{{end}}
<nav class="pagination">
{{if .PrevLink}}
<a href="{{.PrevLink}}">[prev]</a>
{{end}}
{{if .NextLink}}
<a href="{{.NextLink}}">[next]</a>
{{end}}
</nav>
{{template "footer.tmpl"}}
{{end}}