summaryrefslogtreecommitdiff
path: root/searx/templates/simple/macros.html
diff options
context:
space:
mode:
authormrpaulblack <paul@paulgo.io>2021-11-21 21:38:00 +0100
committermrpaulblack <paul@paulgo.io>2021-11-21 21:38:00 +0100
commitf3aff26086dda1c2610c9aa845db119ad413006f (patch)
tree7e312aafdb1831b46a709089fd3f7875d1b7cd6b /searx/templates/simple/macros.html
parent02cccdf876f2e0b07ef488e6033a858113dc3f1c (diff)
downloadsearxng-f3aff26086dda1c2610c9aa845db119ad413006f.tar.gz
searxng-f3aff26086dda1c2610c9aa845db119ad413006f.zip
[simple theme] rework select; add safesearch to search and replace / with › in article url
* 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
Diffstat (limited to 'searx/templates/simple/macros.html')
-rw-r--r--searx/templates/simple/macros.html6
1 files changed, 5 insertions, 1 deletions
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 @@
<!-- Draw result header -->
{% macro result_header(result, favicons, image_proxify) -%}
<article class="result {% if result['template'] %}result-{{ result.template|replace('.html', '') }}{% else %}result-default{% endif %} {% if result['category'] %}category-{{ result['category'] }}{% endif %}{% for e in result.engines %} {{ e }}{% endfor %}">
- <p class="url">{{ result_link(result.url, result.pretty_url, 'url') }}</p>
+ {{- result_open_link(result.url, "url_wrapper") -}}
+ {%- for part in get_pretty_url(result.parsed_url) -%}
+ <span class="url_o{{loop.index}}"><span class="url_i{{loop.index}}">{{- part -}}</span></span>
+ {%- endfor %}
+ {{- result_close_link() -}}
{%- if result.img_src %}{{ result_open_link(result.url) }}<img class="image" src="{{ image_proxify(result.img_src) }}" alt="{{ result.title|striptags }}" title="{{ result.title|striptags }}" class="image" />{{ result_close_link() }}{% endif -%}
{%- if result.thumbnail %}{{ result_open_link(result.url) }}<img class="thumbnail" src="{{ image_proxify(result.thumbnail) }}" title="{{ result.title|striptags }}" alt="{{ result.title|striptags }}"/>{{ result_close_link() }}{% endif -%}
<h3>{{ result_link(result.url, result.title|safe) }}</h3>