diff options
author | Noémi Ványi <kvch@users.noreply.github.com> | 2020-11-30 08:35:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-30 08:35:15 +0100 |
commit | 4a36a3044d6e39bc60d026d99ed7a010f6505a5f (patch) | |
tree | 7037ea2a1e86ec7d308a5d231eae3aa0897e0f87 /searx/templates/oscar/macros.html | |
parent | 93c2603561c039fb43137c251493e77032f91743 (diff) | |
download | searxng-4a36a3044d6e39bc60d026d99ed7a010f6505a5f.tar.gz searxng-4a36a3044d6e39bc60d026d99ed7a010f6505a5f.zip |
Add recoll engine (#2325)
recoll is a local search engine based on Xapian:
http://www.lesbonscomptes.com/recoll/
By itself recoll does not offer web or API access,
this can be achieved using recoll-webui:
https://framagit.org/medoc92/recollwebui.git
This engine uses a custom 'files' result template
set `base_url` to the location where recoll-webui can be reached
set `dl_prefix` to a location where the file hierarchy as indexed by recoll can be reached
set `search_dir` to the part of the indexed file hierarchy to be searched, use an empty string to search the entire search domain
Diffstat (limited to 'searx/templates/oscar/macros.html')
-rw-r--r-- | searx/templates/oscar/macros.html | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/searx/templates/oscar/macros.html b/searx/templates/oscar/macros.html index 57a90aaa2..2bc1e7805 100644 --- a/searx/templates/oscar/macros.html +++ b/searx/templates/oscar/macros.html @@ -47,6 +47,20 @@ {%- endif -%} {%- endmacro %} +<!-- Draw result footer without cache link --> +{% macro result_footer_nocache(result) -%} + <div class="clearfix"></div> + <div class="pull-right"> + {% for engine in result.engines %} + <span class="label label-default">{{ engine }}</span> + {% endfor %} + {% if proxify %} + <small>{{ result_link(proxify(result.url), icon('sort') + _('proxied'), "text-info") }}</small> + {% endif %} +</div> +<div class="external-link">{{ result.pretty_url }}</div> +{%- endmacro %} + <!-- Draw result footer --> {% macro result_footer_rtl(result, id) -%} <div class="clearfix"></div>{{- "" -}} @@ -68,6 +82,18 @@ {%- endif %} {%- endmacro %} +<!-- Draw result footer without cache link --> +{% macro result_footer_nocache_rtl(result) -%} + <div class="clearfix"></div> + {% for engine in result.engines %} + <span class="label label-default">{{ engine }}</span> + {% endfor %} + {% if proxify %} + <small>{{ result_link(proxify(result.url), icon('sort') + _('proxied'), "text-info") }}</small> + {% endif %} + <div class="external-link">{{ result.pretty_url }}</div> +{%- endmacro %} + {% macro preferences_item_header(info, label, rtl, id) -%} {% if rtl %} <div class="row form-group"> |