mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-11-14 18:54:27 +00:00
Add missing template for search
This commit is contained in:
parent
ee37803987
commit
0dac5ec8fd
1 changed files with 27 additions and 0 deletions
27
app/templates/admin_search.html
Normal file
27
app/templates/admin_search.html
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
{%- import "utils.html" as utils with context -%}
|
||||||
|
{% extends "layout.html" %}
|
||||||
|
|
||||||
|
{% block head %}
|
||||||
|
<title>{{ local_actor.display_name }} - Search</title>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
|
||||||
|
<div class="box">
|
||||||
|
|
||||||
|
<form class="form" action="{{ url_for("admin_search") }}" method="GET">
|
||||||
|
<input type="text" name="query" value="{{ query if query else "" }}" autofocus>
|
||||||
|
<select name="what">
|
||||||
|
<option value="outbox">Outbox</option>
|
||||||
|
</select>
|
||||||
|
<input type="submit" value="Search">
|
||||||
|
</form>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{% for result in results %}
|
||||||
|
{{ utils.display_object(result) }}
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
|
|
||||||
|
{% endblock %}
|
Loading…
Reference in a new issue