bloat/templates/timeline.tmpl

43 lines
1.1 KiB
Cheetah
Raw Normal View History

2020-01-14 18:57:16 +02:00
{{with .Data}}
2020-02-19 00:15:37 +02:00
{{template "header.tmpl" (WithContext .CommonData $.Ctx)}}
2022-01-27 13:50:54 +02:00
<div class="page-title-container">
<span class="page-title"> {{.Title}} </span>
<a class="page-refresh" href="{{$.Ctx.Referrer}}" accesskey="T" title="Refresh (T)">refresh</a>
</div>
2019-12-13 20:08:26 +02:00
2021-01-23 10:44:05 +02: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}}
{{if eq .Type "tag"}}
<form class="search-form" action="/timeline/tag" method="GET">
<span class="post-form-field">
<label for="tag"> Tag </label>
<input id="tag" name="tag" value="">
</span>
<button type="submit"> Submit </button>
</form>
{{end}}
2021-01-23 10:44:05 +02:00
2019-12-13 20:08:26 +02:00
{{range .Statuses}}
2020-01-14 18:57:16 +02:00
{{template "status.tmpl" (WithContext . $.Ctx)}}
2019-12-13 20:08:26 +02:00
{{end}}
2019-12-15 08:55:13 +02:00
<div class="pagination">
2020-01-28 19:51:00 +02:00
{{if .PrevLink}}
2020-09-22 19:22:58 +03:00
<a href="{{.PrevLink}}">[prev]</a>
2019-12-15 08:55:13 +02:00
{{end}}
2020-01-28 19:51:00 +02:00
{{if .NextLink}}
2020-09-22 19:22:58 +03:00
<a href="{{.NextLink}}">[next]</a>
2019-12-15 08:55:13 +02:00
{{end}}
</div>
2020-01-14 18:57:16 +02:00
2019-12-13 20:08:26 +02:00
{{template "footer.tmpl"}}
2020-01-14 18:57:16 +02:00
{{end}}