diff options
Diffstat (limited to 'searx/templates/courgette')
| -rw-r--r-- | searx/templates/courgette/about.html | 2 | ||||
| -rw-r--r-- | searx/templates/courgette/base.html | 5 | ||||
| -rw-r--r-- | searx/templates/courgette/index.html | 5 | ||||
| -rw-r--r-- | searx/templates/courgette/preferences.html | 16 | ||||
| -rw-r--r-- | searx/templates/courgette/results.html | 1 |
5 files changed, 23 insertions, 6 deletions
diff --git a/searx/templates/courgette/about.html b/searx/templates/courgette/about.html index 1c2e0635d..2945e1f7b 100644 --- a/searx/templates/courgette/about.html +++ b/searx/templates/courgette/about.html @@ -1,7 +1,7 @@ {% extends 'courgette/base.html' %} {% block content %} {% include 'courgette/github_ribbon.html' %} -<div class="row"> +<div class="row"{% if rtl %} dir="ltr"{% endif %}> <h1>About <a href="{{ url_for('index') }}">searx</a></h1> <p>Searx is a <a href="https://en.wikipedia.org/wiki/Metasearch_engine">metasearch engine</a>, aggregating the results of other <a href="{{ url_for('preferences') }}">search engines</a> while not storing information about its users. diff --git a/searx/templates/courgette/base.html b/searx/templates/courgette/base.html index 08f9bfa73..58957335d 100644 --- a/searx/templates/courgette/base.html +++ b/searx/templates/courgette/base.html @@ -1,5 +1,5 @@ <!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"{% if rtl %} dir="rtl"{% endif %}> <head> <meta charset="UTF-8" /> <meta name="description" content="Searx - a privacy-respecting, hackable metasearch engine" /> @@ -8,6 +8,9 @@ <meta name="viewport" content="width=device-width, maximum-scale=1.0, user-scalable=1" /> <title>{% block title %}{% endblock %}searx</title> <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}" type="text/css" media="screen" /> + {% if rtl %} + <link rel="stylesheet" href="{{ url_for('static', filename='css/style-rtl.css') }}" type="text/css" media="screen" /> + {% endif %} {% if cookies['courgette-color'] %} <style type="text/css"> {% include 'courgette/color.css' %} diff --git a/searx/templates/courgette/index.html b/searx/templates/courgette/index.html index 810d75165..0d34e1cf6 100644 --- a/searx/templates/courgette/index.html +++ b/searx/templates/courgette/index.html @@ -5,8 +5,13 @@ <div class="title"><h1>searx</h1></div> {% include 'courgette/search.html' %} <p class="top_margin"> + {% if rtl %} + <a href="{{ url_for('preferences') }}" class="hmarg">{{ _('preferences') }}</a> + {% endif %} <a href="{{ url_for('about') }}" class="hmarg">{{ _('about') }}</a> + {% if not rtl %} <a href="{{ url_for('preferences') }}" class="hmarg">{{ _('preferences') }}</a> + {% endif %} </p> </div> {% endblock %}
\ No newline at end of file diff --git a/searx/templates/courgette/preferences.html b/searx/templates/courgette/preferences.html index 64da3fd1c..efa0f65fa 100644 --- a/searx/templates/courgette/preferences.html +++ b/searx/templates/courgette/preferences.html @@ -60,6 +60,16 @@ </p> </fieldset> <fieldset> + <legend>{{ _('SafeSearch') }}</legend> + <p> + <select name='safesearch'> + <option value="2" {% if safesearch == '2' %}selected="selected"{% endif %}>{{ _('Strict') }}</option> + <option value="1" {% if safesearch == '1' %}selected="selected"{% endif %}>{{ _('Moderate') }}</option> + <option value="0" {% if safesearch == '0' %}selected="selected"{% endif %}>{{ _('None') }}</option> + </select> + </p> + </fieldset> + <fieldset> <legend>{{ _('Themes') }}</legend> <p> <select name="theme"> @@ -85,7 +95,7 @@ <fieldset> <legend>{{ _('Currently used search engines') }}</legend> - <table> + <table class="engine-table"> <tr> <th>{{ _('Engine name') }}</th> <th>{{ _('Category') }}</th> @@ -96,10 +106,10 @@ {% if not search_engine.private %} <tr> - <td>{{ search_engine.name }} ({{ shortcuts[search_engine.name] }})</td> + <td>{{ search_engine.name }} ({{ shortcuts[search_engine.name] }})‎</td> <td>{{ _(categ) }}</td> <td class="engine_checkbox"> - <input type="checkbox" id="engine_{{ categ|replace(' ', '_') }}_{{ search_engine.name|replace(' ', '_') }}" name="engine_{{ search_engine.name }}"{% if search_engine.name in blocked_engines %} checked="checked"{% endif %} /> + <input type="checkbox" id="engine_{{ categ|replace(' ', '_') }}_{{ search_engine.name|replace(' ', '_') }}" name="engine_{{ search_engine.name }}__{{ categ }}"{% if (search_engine.name, categ) in blocked_engines %} checked="checked"{% endif %} /> <label class="allow" for="engine_{{ categ|replace(' ', '_') }}_{{ search_engine.name|replace(' ', '_') }}">{{ _('Allow') }}</label> <label class="deny" for="engine_{{ categ|replace(' ', '_') }}_{{ search_engine.name|replace(' ', '_') }}">{{ _('Block') }}</label> </td> diff --git a/searx/templates/courgette/results.html b/searx/templates/courgette/results.html index de3c4e678..6d603fdee 100644 --- a/searx/templates/courgette/results.html +++ b/searx/templates/courgette/results.html @@ -8,7 +8,6 @@ </div> <div id="results"> <div id="sidebar"> - <div id="search_url"> {{ _('Search URL') }}: <input type="text" value="{{ base_url }}?q={{ q|urlencode }}&pageno={{ pageno }}{% if selected_categories %}&category_{{ selected_categories|join("&category_")|replace(' ','+') }}{% endif %}" readonly /> |