aboutsummaryrefslogtreecommitdiff
path: root/templates/timeline.tmpl
blob: bde050ae0916121af72c69cbfb4cc46ce05d0e5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{{with .Data}}
{{template "header.tmpl" (WithContext .CommonData $.Ctx)}}
<div class="page-title"> {{.Title}} </div>

{{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}}

{{range .Statuses}}
{{template "status.tmpl" (WithContext . $.Ctx)}}
{{end}}

<div class="pagination">
	{{if .PrevLink}}
		<a href="{{.PrevLink}}">[prev]</a>
	{{end}}
	{{if .NextLink}}
		<a href="{{.NextLink}}">[next]</a>
	{{end}}
</div>

{{template "footer.tmpl"}}
{{end}}