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