SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
[fix] simple template - video.html fix button icon to icon_small
Markus Heiser8b864ed11107
diff --git a/client/simple/src/less/style.less b/client/simple/src/less/style.lessindex 7b34ea406..1ea7c3e4b 100644--- a/client/simple/src/less/style.less+++ b/client/simple/src/less/style.less@@ -32,8 +32,8 @@// to center the results@import "style-center.less";-// ion-icon-.ion-icon {+// sxng-icon-set+.sxng-icon-set {display: inline-block;vertical-align: bottom;line-height: 1;@@ -41,16 +41,16 @@.ltr-transform();}-.ion-icon-small {+.sxng-icon-set-small {width: 1rem;height: 1rem;- .ion-icon;+ .sxng-icon-set;}-.ion-icon-big {+.sxng-icon-set-big {width: 1.5rem;height: 1.5rem;- .ion-icon;+ .sxng-icon-set;}// Main LESS-Codediff --git a/client/simple/theme_icons.js b/client/simple/theme_icons.jsindex dc896a15c..b7d695cc8 100644--- a/client/simple/theme_icons.js+++ b/client/simple/theme_icons.js@@ -11,9 +11,9 @@ const dest = resolve(HERE, "../../searx/templates/simple/icons.html");/** @type import("./tools/jinja_svg_catalog.js").JinjaMacro[] */const searxng_jinja_macros = [- { name: "icon", class: "ion-icon" },- { name: "icon_small", class: "ion-icon-small" },- { name: "icon_big", class: "ion-icon-big" },+ { name: "icon", class: "sxng-icon-set" },+ { name: "icon_small", class: "sxng-icon-set-small" },+ { name: "icon_big", class: "sxng-icon-set-big" },];diff --git a/searx/templates/simple/icons.html b/searx/templates/simple/icons.htmlindex c6022de09..2ef37dd26 100644--- a/searx/templates/simple/icons.html+++ b/searx/templates/simple/icons.html@@ -43,13 +43,13 @@ set catalog = {{% macro icon(action, alt) -%}- {{ catalog[action] | replace("__jinja_class_placeholder__", "ion-icon") | safe }}+ {{ catalog[action] | replace("__jinja_class_placeholder__", "sxng-icon-set") | safe }}{%- endmacro %}{% macro icon_small(action, alt) -%}- {{ catalog[action] | replace("__jinja_class_placeholder__", "ion-icon-small") | safe }}+ {{ catalog[action] | replace("__jinja_class_placeholder__", "sxng-icon-set-small") | safe }}{%- endmacro %}{% macro icon_big(action, alt) -%}- {{ catalog[action] | replace("__jinja_class_placeholder__", "ion-icon-big") | safe }}+ {{ catalog[action] | replace("__jinja_class_placeholder__", "sxng-icon-set-big") | safe }}{%- endmacro %}\ No newline at end of filediff --git a/searx/templates/simple/result_templates/videos.html b/searx/templates/simple/result_templates/videos.htmlindex 40a05698f..23d4195ca 100644--- a/searx/templates/simple/result_templates/videos.html+++ b/searx/templates/simple/result_templates/videos.html@@ -3,7 +3,7 @@{{ result_header(result, favicons, image_proxify) }}{{ result_sub_header(result) }}{% if result.iframe_src -%}-<p class="altlink"> <a class="btn-collapse collapsed media-loader disabled_if_nojs" data-target="#result-video-{{ index }}" data-btn-text-collapsed="{{ _('show video') }}" data-btn-text-not-collapsed="{{ _('hide video') }}">{{ icon('film') }} {{ _('show video') }}</a></p>+<p class="altlink"> <a class="btn-collapse collapsed media-loader disabled_if_nojs" data-target="#result-video-{{ index }}" data-btn-text-collapsed="{{ _('show video') }}" data-btn-text-not-collapsed="{{ _('hide video') }}">{{ icon_small('film') }} {{ _('show video') }}</a></p>{%- endif %}{%- if result.content %}<p class="content">