From ad1aca682318657955369b1f2cb28a86bc25394c Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Sat, 30 Apr 2022 08:04:09 +0200 Subject: [theme] delete static/themes/oscar and templates/oscar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Markus Heiser templates/oscar# gelöscht: searx/static/themes/oscar/fonts/glyphicons-halflings-regular.ttf --- searx/templates/oscar/macros.html | 145 -------------------------------------- 1 file changed, 145 deletions(-) delete mode 100644 searx/templates/oscar/macros.html (limited to 'searx/templates/oscar/macros.html') diff --git a/searx/templates/oscar/macros.html b/searx/templates/oscar/macros.html deleted file mode 100644 index 2b27cfd28..000000000 --- a/searx/templates/oscar/macros.html +++ /dev/null @@ -1,145 +0,0 @@ - -{% macro icon(action, alt) -%} - -{%- endmacro %} - - -{% macro draw_favicon(favicon) -%} - {{ favicon }} -{%- endmacro %} - -{%- macro result_link(url, title, classes='', id='') -%} -{{ title }} -{%- endmacro -%} - - -{% macro result_header(result, favicons, id) -%} -

{% if result.engine~".png" in favicons %}{{ draw_favicon(result.engine) }}{% endif %}{% if result.url %}{{ result_link(result.url, result.title|safe, id=id) }}{% else %}{{ result.title|safe}}{% endif %}

-{%- endmacro %} - - -{% macro result_sub_header(result, id) -%} - {%- if result.publishedDate %}{% endif -%} - {%- if result.magnetlink %} • {{ result_link(result.magnetlink, icon('magnet') + _('magnet link'), "magnetlink", id) }}{% endif -%} - {%- if result.torrentfile %} • {{ result_link(result.torrentfile, icon('download-alt') + _('torrent file'), "torrentfile", id) }}{% endif -%} - {%- if result.metadata %}
{{ result.metadata|safe }}
{% endif -%} -{%- endmacro %} - - -{% macro result_footer(result, id) -%} -
{{- "" -}} -
- {%- for engine in result.engines -%} - {{ engine }} - {%- endfor -%} - {%- if result.url -%} - {%- if result.cached_url -%} - {{ result_link(result.cached_url, icon('link') + _('cached'), "text-info", id) }} - {%- elif not result.is_onion -%} - {{ result_link("https://web.archive.org/web/" + result.url, icon('link') + _('cached'), "text-info", id) }} - {%- endif -%} - {%- endif -%} - {%- if proxify and proxify_results -%} - {{ result_link(proxify(result.url), icon('sort') + _('proxied'), "text-info", id) }} - {%- endif -%} -
- {%- if result.pretty_url -%} - - {%- endif -%} -{%- endmacro %} - - -{% macro result_footer_nocache(result) -%} -
{{- "" -}} -
- {%- for engine in result.engines -%} - {{ engine }} - {%- endfor -%} - {%- if proxify and proxify_results -%} - {{ result_link(proxify(result.url), icon('sort') + _('proxied'), "text-info") }} - {%- endif -%} -
{{- "" -}} - -{%- endmacro %} - - -{% macro result_footer_rtl(result, id) -%} -
- {%- for engine in result.engines -%} - {{ engine }} - {%- endfor -%} - {%- if result.url -%} - {%- if result.cached_url -%} - {{ result_link(result.cached_url, icon('link') + _('cached'), "text-info", id) }} - {%- elif not result.is_onion -%} - {{ result_link("https://web.archive.org/web/" + result.url, icon('link') + _('cached'), "text-info", id) }} - {%- endif -%} - {%- endif -%} - {%- if proxify and proxify_results -%} - {{ result_link(proxify(result.url), icon('sort') + _('proxied'), "text-info", id) }} - {%- endif -%} - {%- if result.pretty_url -%} - - {%- endif -%} -{%- endmacro %} - - -{% macro result_footer_nocache_rtl(result) -%} -
- {%- for engine in result.engines -%} - {{ engine }} - {%- endfor -%} - {%- if proxify and proxify_results -%} - {{ result_link(proxify(result.url), icon('sort') + _('proxied'), "text-info") }} - {%- endif -%} - -{%- endmacro %} - -{% macro preferences_item_header(info, label, rtl, id) -%} - {%- if rtl -%} -
{{- "" -}} - {{- "" -}} - {{ info }}{{- "" -}} -
- {%- else -%} -
{{- "" -}} - {{- "" -}} -
- {%- endif -%} -{%- endmacro %} - -{% macro preferences_item_footer(info, label, rtl) -%} - {%- if rtl -%} -
{{- "" -}} -
- {%- else -%} -
- {{ info }}{{- "" -}} -
- {%- endif -%} -{%- endmacro %} - -{% macro custom_select_class(rtl) -%} -custom-select{% if rtl %}-rtl{% endif %} -{%- endmacro %} - -{% macro checkbox_toggle(id, blocked) -%} -
{{- "" -}} - {{- "" -}} - {{- "" -}} - {{- "" -}} -
{{- "" -}} -{%- endmacro %} - -{% macro support_toggle(supports) -%} - {%- if supports == '?' -%} - {{- "" -}} - {%- elif supports -%} - {{- "" -}} - {%- else -%} - {{- "" -}} - {%- endif -%} -{%- endmacro %} -- cgit v1.2.3