Merge pull request #9036 from Blendify/patch-3

HTML Templates: Add blocks to search page
This commit is contained in:
Takeshi KOMIYA 2021-04-04 13:36:48 +09:00 committed by GitHub
commit fcb7d01422
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,6 +20,7 @@
{% endblock %}
{% block body %}
<h1 id="search-documentation">{{ _('Search') }}</h1>
{% block scriptwarning %}
<div id="fallback" class="admonition warning">
<script>$('#fallback').hide();</script>
<p>
@ -27,15 +28,21 @@
functionality.{% endtrans %}
</p>
</div>
{% endblock %}
{% block searchtext %}
<p>
{% trans %}Searching for multiple words only shows matches that contain
all words.{% endtrans %}
</p>
{% endblock %}
{% block searchbox %}
<form action="" method="get">
<input type="text" name="q" aria-labelledby="search-documentation" value="" />
<input type="submit" value="{{ _('search') }}" />
<span id="search-progress" style="padding-left: 10px"></span>
</form>
{% endblock %}
{% block searchresults %}
{% if search_performed %}
<h2>{{ _('Search Results') }}</h2>
{% if not search_results %}
@ -53,4 +60,5 @@
</ul>
{% endif %}
</div>
{% endblock %}
{% endblock %}