2020-01-30 17:32:37 +02:00
|
|
|
{{with .Data}}
|
2020-02-19 00:15:37 +02:00
|
|
|
{{template "header.tmpl" (WithContext .CommonData $.Ctx)}}
|
2020-01-30 17:32:37 +02:00
|
|
|
<div class="page-title"> Search {{EmojiFilter .User.DisplayName .User.Emojis}}'s statuses </div>
|
|
|
|
|
|
|
|
<form class="search-form" action="/usersearch/{{.User.ID}}" method="GET">
|
|
|
|
<span class="post-form-field>
|
|
|
|
<label for="query"> Query </label>
|
2021-04-23 13:19:09 +03:00
|
|
|
<input id="query" name="q" value="{{.Q | html}}">
|
2020-01-30 17:32:37 +02:00
|
|
|
</span>
|
|
|
|
<button type="submit"> Search </button>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
{{range .Statuses}}
|
|
|
|
{{template "status.tmpl" (WithContext . $.Ctx)}}
|
2020-07-28 17:01:32 +03:00
|
|
|
{{else}}
|
2020-08-22 09:48:13 +03:00
|
|
|
{{if .Q}}<div class="no-data-found">No data found</div>{{end}}
|
2020-01-30 17:32:37 +02:00
|
|
|
{{end}}
|
|
|
|
|
|
|
|
<div class="pagination">
|
|
|
|
{{if .NextLink}}
|
2020-09-22 19:22:58 +03:00
|
|
|
<a href="{{.NextLink}}">[next]</a>
|
2020-01-30 17:32:37 +02:00
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{template "footer.tmpl"}}
|
|
|
|
{{end}}
|