aboutsummaryrefslogtreecommitdiff
path: root/templates/timeline.tmpl
blob: 38659dc5e24647a9978eb2a8e06f3a34047504da (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
30
31
32
{{with .Data}}
{{template "header.tmpl" (WithContext .CommonData $.Ctx)}}
<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>

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