bloat/templates/usersearch.tmpl

27 lines
714 B
Cheetah
Raw Permalink Normal View History

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