diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2024-10-02 18:06:29 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarIT.de> | 2024-10-05 08:18:28 +0200 |
commit | a631f77401a0a20ae98ae472482d0e4b912d4c60 (patch) | |
tree | ac451cd34496105576b17114eb7260b4ad513072 /searx/templates/simple/macros.html | |
parent | a7d02d4101c3e2ed3d35130466574c80f4d3583d (diff) | |
download | searxng-a631f77401a0a20ae98ae472482d0e4b912d4c60.tar.gz searxng-a631f77401a0a20ae98ae472482d0e4b912d4c60.zip |
[mod] favicons: simplify RTL in template & CSS
Comes from a sughgestion in:
- https://github.com/searxng/searxng/pull/3727#issuecomment-2388998803
Suggested-by: Bnyro <bnyro@tutanota.com>
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/templates/simple/macros.html')
-rw-r--r-- | searx/templates/simple/macros.html | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/searx/templates/simple/macros.html b/searx/templates/simple/macros.html index 858ee2d7e..a6c1f98ab 100644 --- a/searx/templates/simple/macros.html +++ b/searx/templates/simple/macros.html @@ -20,20 +20,15 @@ <!-- 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 %}"> - {{- result_open_link(result.url, "url_wrapper") -}} - {% if not rtl %} - {%- if favicon_resolver != "" %} - <div class="favicon"><img loading="lazy" src="{{ favicon_url(result.parsed_url.netloc) }}"></div> - {%- endif -%} - {%- endif -%} - {%- 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 %} - {% if rtl %} - {%- if favicon_resolver != "" %} - <div class="favicon"><img loading="lazy" src="{{ favicon_url(result.parsed_url.netloc) }}"></div> - {%- endif -%} + {{- result_open_link(result.url, "url_header") -}} + {%- if favicon_resolver != "" %} + <div class="favicon"><img loading="lazy" src="{{ favicon_url(result.parsed_url.netloc) }}"></div> {%- endif -%} + <div class="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 %} + </div> {{- result_close_link() -}} {%- if result.thumbnail %}{{ result_open_link(result.url) }}<img class="thumbnail" src="{{ image_proxify(result.thumbnail) }}" title="{{ result.title|striptags }}" loading="lazy">{{ result_close_link() }}{% endif -%} <h3>{{ result_link(result.url, result.title|safe) }}</h3> |