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/result_templates/code.html | 18 ----- .../templates/oscar/result_templates/default.html | 38 ----------- searx/templates/oscar/result_templates/files.html | 55 ---------------- searx/templates/oscar/result_templates/images.html | 36 ---------- .../oscar/result_templates/key-value.html | 19 ------ searx/templates/oscar/result_templates/map.html | 76 ---------------------- .../templates/oscar/result_templates/products.html | 22 ------- .../templates/oscar/result_templates/torrent.html | 25 ------- searx/templates/oscar/result_templates/videos.html | 29 --------- 9 files changed, 318 deletions(-) delete mode 100644 searx/templates/oscar/result_templates/code.html delete mode 100644 searx/templates/oscar/result_templates/default.html delete mode 100644 searx/templates/oscar/result_templates/files.html delete mode 100644 searx/templates/oscar/result_templates/images.html delete mode 100644 searx/templates/oscar/result_templates/key-value.html delete mode 100644 searx/templates/oscar/result_templates/map.html delete mode 100644 searx/templates/oscar/result_templates/products.html delete mode 100644 searx/templates/oscar/result_templates/torrent.html delete mode 100644 searx/templates/oscar/result_templates/videos.html (limited to 'searx/templates/oscar/result_templates') diff --git a/searx/templates/oscar/result_templates/code.html b/searx/templates/oscar/result_templates/code.html deleted file mode 100644 index c7d93e2b3..000000000 --- a/searx/templates/oscar/result_templates/code.html +++ /dev/null @@ -1,18 +0,0 @@ -{% from 'oscar/macros.html' import result_header, result_sub_header, result_footer, result_footer_rtl, icon with context%} - -{{ result_header(result, favicons) }} -{{ result_sub_header(result) }} - -{% if result.content %}

{{ result.content|safe }}

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

{{ icon('file') }} {{ result.repository }}

{% endif %} - -
-{{ result.codelines|code_highlighter(result.code_language)|safe }} -
- -{% if rtl %} -{{ result_footer_rtl(result) }} -{% else %} -{{ result_footer(result) }} -{% endif %} diff --git a/searx/templates/oscar/result_templates/default.html b/searx/templates/oscar/result_templates/default.html deleted file mode 100644 index ea202910d..000000000 --- a/searx/templates/oscar/result_templates/default.html +++ /dev/null @@ -1,38 +0,0 @@ -{% from 'oscar/macros.html' import result_header, result_sub_header, result_footer, result_footer_rtl, icon with context %} - -{{- result_header(result, favicons, loop.index) -}} -{{- result_sub_header(result, loop.index) -}} - -{%- if result.iframe_src -%} - -{%- endif -%} - -{% if result.iframe_src -%} - -{%- endif -%} - -{%- if result.img_src or result.thumbnail -%} -
{{- "" -}} -
{{- "" -}} - - {%- if result.content %}

{{ result.content|safe }}

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

{{ result.content|safe }}

{% endif -%} -{%- endif -%} - -{% if result.audio_src -%} -
- -
-{%- endif %} - - -{%- if rtl -%} -{{ result_footer_rtl(result, loop.index) }} -{%- else -%} -{{ result_footer(result, loop.index) }} -{%- endif -%} diff --git a/searx/templates/oscar/result_templates/files.html b/searx/templates/oscar/result_templates/files.html deleted file mode 100644 index 52798f7d8..000000000 --- a/searx/templates/oscar/result_templates/files.html +++ /dev/null @@ -1,55 +0,0 @@ -{% from 'oscar/macros.html' import result_header, result_sub_header, result_footer_nocache, result_footer_nocache_rtl, icon with context %} - -{{- result_header(result, favicons) -}} -{{- result_sub_header(result) -}} - -{%- if result.embedded -%} - -{%- endif -%} - -{%- if result.embedded -%} -
- {{- result.embedded|safe -}} -
-{%- endif -%} - -{%- if result.abstract %}

{{ result.abstract|safe }}

{% endif -%} - -{%- if result.img_src -%} -
-
-{{ result.title|striptags }} -{%- if result.content %}

{{ result.content|safe }}

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

{{ result.content|safe }}

{% endif -%} -{%- endif -%} - - -{%- if result.author %}{% endif -%} - -{%- if result.filename %}{% endif -%} - -{%- if result.size %} -{%- endif -%} - -{%- if result.time %}{% endif -%} - -{%- if result.mtype %}{% endif -%} - - -{%- if rtl -%} -{{ result_footer_nocache_rtl(result) }} -{%- else -%} -{{ result_footer_nocache(result) }} -{%- endif -%} diff --git a/searx/templates/oscar/result_templates/images.html b/searx/templates/oscar/result_templates/images.html deleted file mode 100644 index 96cdd53bb..000000000 --- a/searx/templates/oscar/result_templates/images.html +++ /dev/null @@ -1,36 +0,0 @@ -{%- from 'oscar/macros.html' import draw_favicon with context -%} - -{{- "" -}} - {{ result.title|striptags }}{{- "" -}} - -{{- "" -}} diff --git a/searx/templates/oscar/result_templates/key-value.html b/searx/templates/oscar/result_templates/key-value.html deleted file mode 100644 index 9d75682d4..000000000 --- a/searx/templates/oscar/result_templates/key-value.html +++ /dev/null @@ -1,19 +0,0 @@ -{% from 'oscar/macros.html' import result_footer, result_footer_rtl with context %} -
- - {% for key, value in result.items() %} - {% if key in ['engine', 'engines', 'template', 'score', 'category', 'positions', 'pretty_url', 'parsed_url'] %} - {% continue %} - {% endif %} - - - - {% endfor %} -
{{ key|upper }}: {{ value|truncate }}
- -{% if rtl %} -{{ result_footer_rtl(result) }} -{% else %} -{{ result_footer(result) }} -{% endif %} -
diff --git a/searx/templates/oscar/result_templates/map.html b/searx/templates/oscar/result_templates/map.html deleted file mode 100644 index bcd1019ec..000000000 --- a/searx/templates/oscar/result_templates/map.html +++ /dev/null @@ -1,76 +0,0 @@ -{% from 'oscar/macros.html' import result_header, result_sub_header, result_footer, result_footer_rtl, icon %} - -{{- result_header(result, favicons, loop.index) -}} -{{- result_sub_header(result, loop.index) -}} - -
- -
- {%- if result.img_src -%}{%- endif -%} - - {%- if result.type_icon or result.type -%} -

- {%- if result.type_icon -%} - - {%- endif -%} - {{ result.type if result.type is not none else '' }} -

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

{{ result.content|safe }}

{% endif -%} - - - {%- if result.address -%} - - - - - {%- endif %} - {%- for info in result.data -%} - - {%- endfor -%} - {%- for link in result.links -%} - - {%- endfor -%} -
- {{ result.address_label or _('address') }} - - {%- if result.address.name -%} - - {%- endif -%} - {%- if result.address.road -%} - - {%- if result.address.house_number %}{{ result.address.house_number }}, {% endif -%} - {{- result.address.road -}} -
- {%- endif -%} - {%- if result.address.locality -%} - {{ result.address.locality }} - {%- if result.address.postcode %}, {{ result.address.postcode }}{% endif -%} -
- {%- endif -%} - {%- if result.address.country -%} - {{ result.address.country }} - {%- endif -%} -
{{ info.label }}{{ info.value|safe }}
{{ link.label }}{{ link.url_label|safe }}
- -

- {%- if (result.latitude and result.longitude) or result.boundingbox -%} - - {%- endif -%} -

- -
- -{%- if (result.latitude and result.longitude) or result.boundingbox -%} -
-
-
-{%- endif -%} - -
-{%- if rtl -%} -{{- result_footer_rtl(result, loop.index) -}} -{% else %} -{{- result_footer(result, loop.index) -}} -{%- endif -%} diff --git a/searx/templates/oscar/result_templates/products.html b/searx/templates/oscar/result_templates/products.html deleted file mode 100644 index 590db0e05..000000000 --- a/searx/templates/oscar/result_templates/products.html +++ /dev/null @@ -1,22 +0,0 @@ -{% from 'oscar/macros.html' import draw_favicon, result_header, result_sub_header, result_footer_rtl, result_footer %} - -{{ result_header(result, favicons) }} -{{ result_sub_header(result) }} - -
-
- {{ result.title|striptags }} {{ result.engine }} -

- {% if result.price %}{{ result.price|safe }}
{% endif %} - {% if result.shipping %}{{ result.shipping|safe }}
{% endif %} - {% if result.source_country %}{{ result.source_country|safe }}
{% endif %} - {% if result.content %}{{ result.content|safe }}{% endif %} -

-
-
- -{% if rtl %} -{{ result_footer_rtl(result) }} -{% else %} -{{ result_footer(result) }} -{% endif %} diff --git a/searx/templates/oscar/result_templates/torrent.html b/searx/templates/oscar/result_templates/torrent.html deleted file mode 100644 index 9f6671549..000000000 --- a/searx/templates/oscar/result_templates/torrent.html +++ /dev/null @@ -1,25 +0,0 @@ -{% from 'oscar/macros.html' import result_header, result_sub_header, result_footer, result_footer_rtl, icon %} - -{{- result_header(result, favicons, loop.index) -}} -{{- result_sub_header(result, loop.index) -}} - -{%- if result.seed is defined %}

{{ icon('transfer') }} {{ _('Seeder') }} {{ result.seed }} • {{ _('Leecher') }} {{ result.leech }}{% endif -%} -{%- if result.filesize %}
{{ icon('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') -}} - {%- elif result.filesize < 1024*1024*1024*1024 %}{{ '{0:0.2f}'.format(result.filesize/1024/1024/1024) }} {{ _('GiB') -}} - {%- else %}{{ '{0:0.2f}'.format(result.filesize/1024/1024/1024/1024) }} {{ _('TiB') }}{% endif -%} - {% endif -%} -{%- if result.files %}
{{ icon('file') }} {{ _('Number of Files') }} {{ result.files }}{% endif -%} - -{%- if result.content %}
{{ result.content|safe }}{% endif -%} - -

- -{%- if rtl -%} -{{ result_footer_rtl(result, loop.index) }} -{%- else -%} -{{ result_footer(result, loop.index) }} -{%- endif -%} diff --git a/searx/templates/oscar/result_templates/videos.html b/searx/templates/oscar/result_templates/videos.html deleted file mode 100644 index 975f75e2a..000000000 --- a/searx/templates/oscar/result_templates/videos.html +++ /dev/null @@ -1,29 +0,0 @@ -{% from 'oscar/macros.html' import result_header, result_sub_header, result_footer, result_footer_rtl, icon %} - -{{- result_header(result, favicons, loop.index) -}} -{{- result_sub_header(result, loop.index) -}} - -{%- if result.iframe_src -%} - -{%- endif -%} - -{% if result.iframe_src -%} -
- -
-{%- endif %} - -
{{- "" -}} -
{{- "" -}} - - {%- if result.author %}

{{ _('Author') }}: {{ result.author }}

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

{{ _('Length') }}: {{ result.length }}

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

{{ result.content|safe }}

{% endif -%} -
{{- "" -}} -
- -{%- if rtl -%} -{{ result_footer_rtl(result, loop.index) }} -{%- else -%} -{{ result_footer(result, loop.index) }} -{%- endif -%} -- cgit v1.2.3