bloat/templates/usersearch.tmpl
r 1d61f1aa27 Update the default theme
This uses better color contrast and component spacing to improve
legibility. The updated HTML also has better compatibility with browsers
with limited/no CSS support.
2023-12-28 13:27:30 +00:00

28 lines
625 B
Cheetah

{{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}}