bloat/templates/timeline.tmpl

30 lines
687 B
Cheetah
Raw Normal View History

2020-01-14 16:57:16 +00:00
{{with .Data}}
2020-02-18 22:15:37 +00:00
{{template "header.tmpl" (WithContext .CommonData $.Ctx)}}
2019-12-25 04:30:21 +00:00
<div class="page-title"> {{.Title}} </div>
2019-12-13 18:08:26 +00:00
2021-01-23 08:44:05 +00: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 18:08:26 +00:00
{{range .Statuses}}
2020-01-14 16:57:16 +00:00
{{template "status.tmpl" (WithContext . $.Ctx)}}
2019-12-13 18:08:26 +00:00
{{end}}
2019-12-15 06:55:13 +00:00
<div class="pagination">
2020-01-28 17:51:00 +00:00
{{if .PrevLink}}
2020-09-22 16:22:58 +00:00
<a href="{{.PrevLink}}">[prev]</a>
2019-12-15 06:55:13 +00:00
{{end}}
2020-01-28 17:51:00 +00:00
{{if .NextLink}}
2020-09-22 16:22:58 +00:00
<a href="{{.NextLink}}">[next]</a>
2019-12-15 06:55:13 +00:00
{{end}}
</div>
2020-01-14 16:57:16 +00:00
2019-12-13 18:08:26 +00:00
{{template "footer.tmpl"}}
2020-01-14 16:57:16 +00:00
{{end}}