From 189dd0155df60c98b5d7de73b873c8ad444ff931 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Tue, 4 Feb 2025 15:59:02 +0100 Subject: [web-client] simple theme: refactor jinja_svg_catalog and cleanup icon names This patch implements the template generation of the template: searx/templates/simple/icons.html by the way the icon set (the icon names) has been normalized: film-outline --> film magnet-outline --> magnet .. warning --> alert Some missing (categorie) icons had been added. Some of the ionicons are not suitable for a dark theme, we fixed the svg manually in src/svg/ionicons: - https://github.com/searxng/searxng/pull/4284#issuecomment-2680550342 Signed-off-by: Markus Heiser --- .../templates/simple/result_templates/torrent.html | 26 +++++++++++++--------- 1 file changed, 16 insertions(+), 10 deletions(-) (limited to 'searx/templates/simple/result_templates/torrent.html') diff --git a/searx/templates/simple/result_templates/torrent.html b/searx/templates/simple/result_templates/torrent.html index befad2c89..0c870ae11 100644 --- a/searx/templates/simple/result_templates/torrent.html +++ b/searx/templates/simple/result_templates/torrent.html @@ -3,15 +3,21 @@ {{ result_header(result, favicons, image_proxify) -}} {{- result_sub_header(result) -}} -{% if result.magnetlink %}{% endif %} -{% if result.torrentfile %}{% endif %} + -{% if result.seed is defined %}

• {{ icon_big('arrow-swap') }} {{ _('Seeder') }} {{ result.seed }} • {{ _('Leecher') }} {{ result.leech }}

{% endif %} - -{%- if result.filesize %}

{{ icon_big('floppy-disk') }} {{ _('Filesize') }}{{ result.filesize }}

{%- endif -%} - -{%- if result.files %}

{{ icon_big('file') }} {{ _('Number of Files') }} {{ result.files }}

{% endif -%} - -{%- if result.content %}

{{ result.content|safe }}

{% endif -%} +

+ {%- if result.seed is defined %} + {{ icon_big('seeder') }} {{ result.seed }} {{ _('Seeder') }} + {{ icon_big('leecher') }} {{ result.leech }} {{ _('Leecher') }} + {% endif %} +

+

+ {%- if result.filesize %}{{ icon_big('save') }} {{ result.filesize }} {{ _('Filesize') }}{%- endif -%} + {%- if result.files %}{{ icon_big('file') }} {{ result.files }} {{ _('Number of Files') }}{%- endif -%} +

+{%- if result.content %}

{{ result.content|safe }}

{%- endif -%} {{- result_sub_footer(result, proxify) -}} -{{- result_footer(result) }} +{{- result_footer(result) -}} -- cgit v1.2.3