~jadedctrl/jam-xwx-moe
~jadedctrl/jam-xwx-moe/bloat-fe/instance/ŝablonoj/usersearch.tmpl
~jadedctrl/jam-xwx-moe/bloat-fe/instance/ŝablonoj/usersearch.tmpl
0 | {{with .Data}} |
1 | {{template "header.tmpl" (WithContext .CommonData $.Ctx)}} |
2 | <div class="page-title"> Search {{EmojiFilter (HTML .User.DisplayName) .User.Emojis | Raw}}'s statuses </div> |
3 |
|
4 | <form class="search-form" action="/usersearch/{{.User.ID}}" method="GET"> |
5 | <span class="post-form-field"> |
6 | <label for="query"> Query </label> |
7 | <input id="query" name="q" value="{{.Q}}"> |
8 | </span> |
9 | <button type="submit"> Search </button> |
10 | </form> |
11 |
|
12 | {{range .Statuses}} |
13 | {{template "status.tmpl" (WithContext . $.Ctx)}} |
14 | {{else}} |
15 | {{if .Q}}<div class="no-data-found">No data found</div>{{end}} |
16 | {{end}} |
17 |
|
18 | <div class="pagination"> |
19 | {{if .NextLink}} |
20 | <a href="{{.NextLink}}">[next]</a> |
21 | {{end}} |
22 | </div> |
23 |
|
24 | {{template "footer.tmpl"}} |
25 | {{end}} |