bloat/templates/timeline.tmpl

30 lines
687 B
Cheetah
Raw Permalink Normal View History

2020-01-14 17:57:16 +01:00
{{with .Data}}
2020-02-18 23:15:37 +01:00
{{template "header.tmpl" (WithContext .CommonData $.Ctx)}}
2019-12-25 05:30:21 +01:00
<div class="page-title"> {{.Title}} </div>
2019-12-13 19:08:26 +01:00
2021-01-23 09:44:05 +01:00
{{if eq .Type "remote"}}
<form class="search-form" action="/timeline/remote" method="GET">
<span class="post-form-field">
<label for="instance"> Instance </label>
<input id="instance" name="instance" value="{{.Instance}}">
</span>
<button type="submit"> Submit </button>
</form>
{{end}}
2019-12-13 19:08:26 +01:00
{{range .Statuses}}
2020-01-14 17:57:16 +01:00
{{template "status.tmpl" (WithContext . $.Ctx)}}
2019-12-13 19:08:26 +01:00
{{end}}
2019-12-15 07:55:13 +01:00
<div class="pagination">
2020-01-28 18:51:00 +01:00
{{if .PrevLink}}
2020-09-22 18:22:58 +02:00
<a href="{{.PrevLink}}">[prev]</a>
2019-12-15 07:55:13 +01:00
{{end}}
2020-01-28 18:51:00 +01:00
{{if .NextLink}}
2020-09-22 18:22:58 +02:00
<a href="{{.NextLink}}">[next]</a>
2019-12-15 07:55:13 +01:00
{{end}}
</div>
2020-01-14 17:57:16 +01:00
2019-12-13 19:08:26 +01:00
{{template "footer.tmpl"}}
2020-01-14 17:57:16 +01:00
{{end}}