diff options
Diffstat (limited to 'common/sphinx_rtd_theme_rtems/search.html')
-rw-r--r-- | common/sphinx_rtd_theme_rtems/search.html | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/common/sphinx_rtd_theme_rtems/search.html b/common/sphinx_rtd_theme_rtems/search.html index e3aa9b5..10ac568 100644 --- a/common/sphinx_rtd_theme_rtems/search.html +++ b/common/sphinx_rtd_theme_rtems/search.html @@ -9,7 +9,10 @@ #} {%- extends "layout.html" %} {% set title = _('Search') %} -{% set script_files = script_files + ['_static/searchtools.js'] %} +{%- block scripts %} + {{ super() }} + <script type="text/javascript" src="{{ pathto('_static/searchtools.js', 1) }}"></script> +{%- endblock %} {% block footer %} <script type="text/javascript"> jQuery(function() { Search.loadIndex("{{ pathto('searchindex.js', 1) }}"); }); @@ -23,13 +26,14 @@ <noscript> <div id="fallback" class="admonition warning"> <p class="last"> - {% trans %}Please activate JavaScript to enable the search + {% trans trimmed %}Please activate JavaScript to enable the search functionality.{% endtrans %} </p> </div> </noscript> {% if search_performed %} + {# Translators: Search is a noun, not a verb #} <h2>{{ _('Search Results') }}</h2> {% if not search_results %} <p>{{ _('Your search did not match any documents. Please make sure that all words are spelled correctly and that you\'ve selected enough categories.') }}</p> |