blob: eb7571b6a4ce936d1457365e7ce8722a3007761a (
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
33
34
35
36
37
38
39
|
{{with .Data}}
{{template "header.tmpl" (WithContext .CommonData $.Ctx)}}
<h1>{{.Title}} <a class="page-link" href="{{.RefreshLink}}" accesskey="T" title="Refresh (T)">refresh</a></h1>
{{if eq .Type "remote"}}
<form action="/timeline/remote" method="GET">
<span>
<label for="q"> Instance </label>
<input type="text" id="q" name="q" value="{{.Q}}">
</span>
<button type="submit"> Submit </button>
</form>
{{end}}
{{if eq .Type "hashtag"}}
<form action="/timeline/hashtag" method="GET">
<span>
<label for="q"> Tag </label>
<input type="text" id="q" name="q" value="{{.Q}}">
</span>
<button type="submit"> Submit </button>
</form>
{{end}}
{{range .Statuses}}
{{template "status.tmpl" (WithContext . $.Ctx)}}
{{end}}
<nav class="pagination">
{{if .PrevLink}}
<a href="{{.PrevLink}}">[prev]</a>
{{end}}
{{if .NextLink}}
<a href="{{.NextLink}}">[next]</a>
{{end}}
</nav>
{{template "footer.tmpl"}}
{{end}}
|