 }})
diff --git a/searx/templates/__common__/about.html b/searx/templates/__common__/about.html deleted file mode 100644 index 649e66163..000000000 --- a/searx/templates/__common__/about.html +++ /dev/null @@ -1,102 +0,0 @@ -
- Searx is a metasearch engine, - aggregating the results of other search engines - while not storing information about its users. -
- -More about searx...
- - - -- If you do care about privacy, want to be a conscious user, or otherwise - believe in digital freedom, make searx your default search engine or run it - on your own server -
- -- Searx is a metasearch engine, - inspired by the seeks project. - - It provides basic privacy by mixing your queries with searches on other - platforms without storing search data. Queries are made using a POST request - on every browser (except Chromium-based browsers*). Therefore they show up - in neither our logs, nor your url history. In the case of Chromium-based - browser users there is an exception: searx uses the search bar to perform GET - requests. - - Searx can be added to your browser's search bar; moreover, it can be set as - the default search engine. -
- -- Searx supports OpenSearch. - For more information on changing your default search engine, see your browser's documentation: -
- -- Stats page contains some useful data about the engines used. -
- -- Searx appreciates your concern regarding logs, so take the - code from the original searx project and - run it yourself! -
-- Add your searx instance to this list - of public searx instances to help other people reclaim their privacy and - make the Internet freer! The more decentralized the Internet is, the more - freedom we have! -
- -- See the {{ brand.DOCS_URL }} - and {{ brand.GIT_URL }} -
- -{{ _('Go to %(search_page)s.', search_page='{}'.format(url_for('index'), _('search page'))) }}
- {% endautoescape %} -{{ infobox.content | safe }}
{% endif %} - - {% if infobox.attributes -%} -{{ attribute.label }} | - {%- if attribute.image -%} -{{ attribute.value }} | - {%- endif -%} -
{{ result_link(url.url, url.title) }}
- {% endfor -%} - {{- "" -}} -{{ icon('remove-sign') }} {{ _('Error!') }} {{ _('Engines cannot retrieve results.') }}
-- {% for engine_name, error_type in unresponsive_engines %} - {{ engine_name }} ({{ error_type }}){% if not loop.last %}, {% endif %} - {% endfor %} -
-{{ _('Please, try again later or find another searx instance.') }} ({{ _('Public instances') }})
-wikidata.org/wiki/{{about.wikidata_id}}
{%- endif -%} - {%- if search_engine.enable_http %}{{ icon('exclamation-sign', 'No HTTPS') }}{{ _('No HTTPS')}}
{% endif -%} -{{ result.content|safe }}
{% endif %} - -{% if result.repository %}{{ icon('file') }} {{ result.repository }}
{% endif %} - -{{ result.content|safe }}
{% endif -%} -{{ result.content|safe }}
{% endif -%} -{%- 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 e2fec6f63..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 -%} - • - {%- if result.mtype == 'audio' %}{{ icon('music') -}} - {%- elif result.mtype == 'video' %} {{ icon('film') -}} - {%- endif %} {{ _('show media') }} -{%- endif -%} - -{%- if result.embedded -%} -{{ result.abstract|safe }}
{% endif -%} - -{%- if result.img_src -%} -{{ result.content|safe }}
{% endif -%} -{{ result.content|safe }}
{% endif -%} -{%- endif -%} - -{{ _('Author') }} | {{ result.author|safe }} |
{{ _('Filename') }} | {{ result.filename|safe }} |
{{ _('Filesize') }} | - {%- if result.size < 1024 %}{{ result.size }} {{ _('Bytes') -}} - {%- elif result.size < 1024*1024 %}{{ '{0:0.2f}'.format(result.size/1024) }} {{ _('kiB') -}} - {%- elif result.size < 1024*1024*1024 %}{{ '{0:0.2f}'.format(result.size/1024/1024) }} {{ _('MiB') -}} - {%- elif result.size < 1024*1024*1024*1024 %}{{ '{0:0.2f}'.format(result.size/1024/1024/1024) }} {{ _('GiB') -}} - {%- else %}{{ '{0:0.2f}'.format(result.size/1024/1024/1024/1024) }} {{ _('TiB') }}{% endif -%} - |
{{ _('Date') }} | {{ result.time|safe }} |
{{ _('Type') }} | {{ result.mtype|safe }}/{{ result.subtype|safe }} |
{{ key|upper }}: {{ value|truncate }} | -
- {%- if result.type_icon -%}
-
- {%- endif -%}
- {{ result.type if result.type is not none else '' }}
-
{{ result.content|safe }}
{% endif -%} - -- {{ result.address_label or _('address') }} - | -
- {%- if result.address.name -%}
- {{ 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 -%} - {{ icon('globe') }} {{ _('show map') }} - {%- endif -%} -
- -
- {% 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 result.has_stock is defined %}
{% if result.has_stock %}{{ icon('check', _('Has stock')) }}{% else %}{{ icon('alert', _('Out of stock')) }}{% endif %}{% endif %}
-
{{ 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 -%}
-
-
{{ _('Number of results') }}: {{ number_of_results }}
- {%- endif %} - - {% if unresponsive_engines and results|length >= 1 -%} -{{ _('Engines cannot retrieve results') }}:
- {%- for engine_name, error_type in unresponsive_engines -%} - {{- engine_name }} ({{ error_type }}){% if not loop.last %}, {% endif %}{{- "" -}} - {%- endfor -%} -