From 566dfe33307e33e4cb54dc6eae17fb373a09684e Mon Sep 17 00:00:00 2001 From: MrPaulBlack Date: Sat, 13 Nov 2021 10:42:07 +0100 Subject: [simple theme] update to ion icons 5 and drop webfont * update from ionicons-npm to ionicons ver.5 * drop the webfont built by grunt for icons * built icons.html template for inlining icons with jinja2 into html * update icon to use mostly the outline version * add icons to categories and do not display them on mobile to save space * remove all legacy ion icon font files from simple theme * icons.html is added in this commit since make statc.build.restore requires git to know the file already * cleanup error-dialog --- searx/templates/simple/result_templates/images.html | 4 ++-- searx/templates/simple/result_templates/map.html | 5 +++-- searx/templates/simple/result_templates/torrent.html | 10 +++++----- 3 files changed, 10 insertions(+), 9 deletions(-) (limited to 'searx/templates/simple/result_templates') diff --git a/searx/templates/simple/result_templates/images.html b/searx/templates/simple/result_templates/images.html index f905cd6d7..82cfcdde5 100644 --- a/searx/templates/simple/result_templates/images.html +++ b/searx/templates/simple/result_templates/images.html @@ -5,8 +5,8 @@ {{- "" -}}
{{- "" -}} {{ icon('close') }}{{- "" -}} - {{ icon_small('chevron-left') }}{{- "" -}} - {{ icon_small('chevron-right') }}{{- "" -}} + {{ icon('chevron-left') }}{{- "" -}} + {{ icon('chevron-right') }}{{- "" -}} {%- if result.thumbnail_src -%} {{ result.title|striptags }} diff --git a/searx/templates/simple/result_templates/map.html b/searx/templates/simple/result_templates/map.html index 244483a1d..3492d5d5f 100644 --- a/searx/templates/simple/result_templates/map.html +++ b/searx/templates/simple/result_templates/map.html @@ -1,4 +1,5 @@ -{% from 'simple/macros.html' import result_header, result_sub_header, result_sub_footer, result_footer, result_footer_rtl, icon with context %} +{% from 'simple/macros.html' import result_header, result_sub_header, result_sub_footer, result_footer, result_footer_rtl with context %} +{% from 'simple/icons.html' import icon_small %} {{ result_header(result, favicons, image_proxify) -}} {{- result_sub_header(result) -}} @@ -39,7 +40,7 @@ {%- if (result.latitude and result.longitude) or result.boundingbox -%} - + {%- endif -%} {{- result_sub_footer(result, proxify) -}} diff --git a/searx/templates/simple/result_templates/torrent.html b/searx/templates/simple/result_templates/torrent.html index ffb51588b..ecca0fdec 100644 --- a/searx/templates/simple/result_templates/torrent.html +++ b/searx/templates/simple/result_templates/torrent.html @@ -3,12 +3,12 @@ {{ result_header(result, favicons, image_proxify) -}} {{- result_sub_header(result) -}} -{% if result.magnetlink %}{% endif %} -{% if result.torrentfile %}{% endif %} +{% if result.magnetlink %}{% endif %} +{% if result.torrentfile %}{% endif %} -{% if result.seed is defined %}

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

{% endif %} +{% if result.seed is defined %}

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

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

{{ icon('floppy-disk') }} {{ _('Filesize') }} +{%- if result.filesize %}

{{ icon_big('floppy-disk') }} {{ _('Filesize') }} {%- if result.filesize < 1024 %}{{ result.filesize }} {{ _('Bytes') }} {%- elif result.filesize < 1024*1024 %}{{ '{0:0.2f}'.format(result.filesize/1024) }} {{ _('kiB') }} {%- elif result.filesize < 1024*1024*1024 %}{{ '{0:0.2f}'.format(result.filesize/1024/1024) }} {{ _('MiB') }} @@ -17,7 +17,7 @@

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

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

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

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

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

{{ result.content|safe }}

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