diff options
author | Noémi Ványi <kvch@users.noreply.github.com> | 2019-01-07 18:41:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-07 18:41:54 +0100 |
commit | 35d82ed6609c8cf5d905493e1593f2cfe57ae88d (patch) | |
tree | 9bce55203aa60344a3550c2fa21497ea563059e3 | |
parent | 3c95d64ff8f5f42a69b05d721265c6e484edc451 (diff) | |
parent | 89deb4fbcc2e45baa2d949a453a79b24b8600416 (diff) | |
download | searxng-35d82ed6609c8cf5d905493e1593f2cfe57ae88d.tar.gz searxng-35d82ed6609c8cf5d905493e1593f2cfe57ae88d.zip |
Merge pull request #1478 from milouse/fix/simple_theme
Fix simple theme
-rw-r--r-- | searx/plugins/open_results_on_new_tab.py | 1 | ||||
-rw-r--r-- | searx/plugins/vim_hotkeys.py | 1 | ||||
-rw-r--r-- | searx/templates/simple/preferences.html | 14 |
3 files changed, 9 insertions, 7 deletions
diff --git a/searx/plugins/open_results_on_new_tab.py b/searx/plugins/open_results_on_new_tab.py index ae27ea277..0f06f5a56 100644 --- a/searx/plugins/open_results_on_new_tab.py +++ b/searx/plugins/open_results_on_new_tab.py @@ -20,5 +20,6 @@ description = gettext('Results are opened in the same window by default. ' 'This plugin overwrites the default behaviour to open links on new tabs/windows. ' '(JavaScript required)') default_on = False +preference_section = 'ui' js_dependencies = ('plugins/js/open_results_on_new_tab.js',) diff --git a/searx/plugins/vim_hotkeys.py b/searx/plugins/vim_hotkeys.py index 8f06f1343..47b830c79 100644 --- a/searx/plugins/vim_hotkeys.py +++ b/searx/plugins/vim_hotkeys.py @@ -5,6 +5,7 @@ description = gettext('Navigate search results with Vim-like hotkeys ' '(JavaScript required). ' 'Press "h" key on main or result page to get help.') default_on = False +preference_section = 'ui' js_dependencies = ('plugins/js/vim_hotkeys.js',) css_dependencies = ('plugins/css/vim_hotkeys.css',) diff --git a/searx/templates/simple/preferences.html b/searx/templates/simple/preferences.html index 049af5e33..7437ed422 100644 --- a/searx/templates/simple/preferences.html +++ b/searx/templates/simple/preferences.html @@ -68,7 +68,7 @@ <option value="0" {% if safesearch == '0' %}selected="selected"{% endif %}>{{ _('None') }}</option> </select> </p> - <div class="description">{{ _('Filter content') }}</p> + <p class="description">{{ _('Filter content') }}</p> </fieldset> {{ plugin_preferences('general') }} <fieldset> @@ -122,7 +122,7 @@ {% endif %} {% endfor %} </table> - <div> + </div> {{ tab_footer() }} {% endfor %} {{ tabs_close() }} @@ -171,7 +171,7 @@ {{ _('With that list, you can assess searx transparency.') }}<br /> </p> - {% if cookies %} + {% if cookies %} <table class="cookies"> <tr> <th>{{ _('Cookie name') }}</th> @@ -186,14 +186,14 @@ </table> {% else %} {% include 'oscar/messages/no_cookies.html' %} - {% endif %} + {% endif %} <h4>{{ _('Search URL of the currently saved preferences') }} :</h4> <div class="selectable_url"> <pre>{{ url_for('index', _external=True) }}?preferences={{ preferences_url_params|e }}{% raw %}&q=%s{% endraw %}</pre> </div> <p class="small_font">{{ _('Note: specifying custom settings in the search URL can reduce privacy by leaking data to the clicked result sites.') }}</p> - + {{ tab_footer() }} {{ tab_header('maintab', 'privacy', _('Privacy')) }} @@ -218,7 +218,7 @@ <div class="description">{{ _('Proxying image results through searx') }}</div> </fieldset> {{ plugin_preferences('privacy') }} - + {{ tab_footer() }} {{ tabs_close() }} @@ -226,7 +226,7 @@ <p class="small_font">{{ _('These settings are stored in your cookies, this allows us not to store this data about you.') }} <br /> {{ _("These cookies serve your sole convenience, we don't use these cookies to track you.") }} - </p> + </p> <input type="submit" value="{{ _('save') }}" /> <div class="{% if rtl %}left{% else %}right{% endif %} preferences_back"><a href="{{ url_for('clear_cookies') }}">{{ _('Reset defaults') }}</a></div> |