Skip to content

Commit

Permalink
Merge pull request #9036 from Blendify/patch-3
Browse files Browse the repository at this point in the history
HTML Templates: Add blocks to search page
  • Loading branch information
tk0miya committed Apr 4, 2021
2 parents 8e258c0 + 2118c97 commit fcb7d01
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sphinx/themes/basic/search.html
Expand Up @@ -20,22 +20,29 @@
{% endblock %}
{% block body %}
<h1 id="search-documentation">{{ _('Search') }}</h1>
{% block scriptwarning %}
<div id="fallback" class="admonition warning">
<script>$('#fallback').hide();</script>
<p>
{% trans %}Please activate JavaScript to enable the search
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 %}
Expand All @@ -53,4 +60,5 @@ <h2>{{ _('Search Results') }}</h2>
</ul>
{% endif %}
</div>
{% endblock %}
{% endblock %}

0 comments on commit fcb7d01

Please sign in to comment.