From f3aff26086dda1c2610c9aa845db119ad413006f Mon Sep 17 00:00:00 2001 From: mrpaulblack Date: Sun, 21 Nov 2021 21:38:00 +0100 Subject: =?UTF-8?q?[simple=20theme]=20rework=20select;=20add=20safesearch?= =?UTF-8?q?=20to=20search=20and=20replace=20/=20with=20=E2=80=BA=20in=20ar?= =?UTF-8?q?ticle=20url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * rework selection UI in pref (fix based on: https://github.com/twelsby/searx/commit/78643e9f43a103c523f112e9f3ce26a5c7bb3a0f) * moved search filters underneath categories * cut params from url and replace / with › * make h3 and url in article bigger * add safe search select to search filter (this will not override settings and only be valid while on result page in a session) * make search form button not overlap each other when js is disabled * 1rem padding around preview image and thumbnail in default article template --- searx/templates/simple/categories.html | 2 +- searx/templates/simple/filters/languages.html | 8 ++++++++ searx/templates/simple/filters/safesearch.html | 5 +++++ searx/templates/simple/filters/time_range.html | 17 ++++++++++++++++ searx/templates/simple/languages.html | 8 -------- searx/templates/simple/macros.html | 6 +++++- searx/templates/simple/search.html | 28 +++++++++++++------------- searx/templates/simple/simple_search.html | 6 +++--- searx/templates/simple/time-range.html | 17 ---------------- 9 files changed, 53 insertions(+), 44 deletions(-) create mode 100644 searx/templates/simple/filters/languages.html create mode 100644 searx/templates/simple/filters/safesearch.html create mode 100644 searx/templates/simple/filters/time_range.html delete mode 100644 searx/templates/simple/languages.html delete mode 100644 searx/templates/simple/time-range.html (limited to 'searx/templates/simple') diff --git a/searx/templates/simple/categories.html b/searx/templates/simple/categories.html index 29616f127..ae8b2ec09 100644 --- a/searx/templates/simple/categories.html +++ b/searx/templates/simple/categories.html @@ -13,6 +13,7 @@ } -%}
{{- '' -}}
+ {%- if display_tooltip %}
{{ _('Click on the magnifier to perform search') }}
{% endif -%} {%- for category in categories -%}
{%- endfor -%} - {%- if display_tooltip %}
{{ _('Click on the magnifier to perform search') }}
{% endif -%}
{{- '' -}}
diff --git a/searx/templates/simple/filters/languages.html b/searx/templates/simple/filters/languages.html new file mode 100644 index 000000000..710c18c92 --- /dev/null +++ b/searx/templates/simple/filters/languages.html @@ -0,0 +1,8 @@ + diff --git a/searx/templates/simple/filters/safesearch.html b/searx/templates/simple/filters/safesearch.html new file mode 100644 index 000000000..a146e6710 --- /dev/null +++ b/searx/templates/simple/filters/safesearch.html @@ -0,0 +1,5 @@ + diff --git a/searx/templates/simple/filters/time_range.html b/searx/templates/simple/filters/time_range.html new file mode 100644 index 000000000..2c85edf92 --- /dev/null +++ b/searx/templates/simple/filters/time_range.html @@ -0,0 +1,17 @@ + diff --git a/searx/templates/simple/languages.html b/searx/templates/simple/languages.html deleted file mode 100644 index dd928ff68..000000000 --- a/searx/templates/simple/languages.html +++ /dev/null @@ -1,8 +0,0 @@ - diff --git a/searx/templates/simple/macros.html b/searx/templates/simple/macros.html index 26aa71891..7a3a4ff9f 100644 --- a/searx/templates/simple/macros.html +++ b/searx/templates/simple/macros.html @@ -18,7 +18,11 @@ {% macro result_header(result, favicons, image_proxify) -%}
-

{{ result_link(result.url, result.pretty_url, 'url') }}

+ {{- result_open_link(result.url, "url_wrapper") -}} + {%- for part in get_pretty_url(result.parsed_url) -%} + {{- part -}} + {%- endfor %} + {{- result_close_link() -}} {%- if result.img_src %}{{ result_open_link(result.url) }}{{ result.title|striptags }}{{ result_close_link() }}{% endif -%} {%- if result.thumbnail %}{{ result_open_link(result.url) }}{{ result.title|striptags }}{{ result_close_link() }}{% endif -%}

{{ result_link(result.url, result.title|safe) }}

diff --git a/searx/templates/simple/search.html b/searx/templates/simple/search.html index c231d7b35..1df55e782 100644 --- a/searx/templates/simple/search.html +++ b/searx/templates/simple/search.html @@ -1,22 +1,22 @@