blob: 5011b994c6a4fd7f5e6171b635ed100443255576 (
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
|
{{with .Data}}
{{template "header.tmpl" (WithContext .CommonData $.Ctx)}}
<h1>Search {{EmojiFilter (HTML .User.DisplayName) .User.Emojis | Raw}} @{{.User.Acct}}'s statuses</h1>
<form action="/usersearch/{{.User.ID}}" method="GET">
<p>
<label>
Query <input type="text" name="q" value="{{.Q}}">
</label>
<button type="submit"> Search </button>
</p>
</form>
{{range .Statuses}}
{{template "status.tmpl" (WithContext . $.Ctx)}}
{{else}}
{{if .Q}}<p>No data found</p>{{end}}
{{end}}
<nav class="pagination">
{{if .NextLink}}
<a href="{{.NextLink}}">[next]</a>
{{end}}
</nav>
{{template "footer.tmpl"}}
{{end}}
|