summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Heiser <markus@darmarit.de>2021-03-25 21:44:07 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2021-04-22 12:37:18 +0200
commit213041adc782e2f9c13038033f41f8935945a0e6 (patch)
tree1eba2e2529f103ee4eac43dce173963908580735
parenta80bf1ba9779ffaa0651d365dff1508aabf4931f (diff)
downloadsearxng-213041adc782e2f9c13038033f41f8935945a0e6.tar.gz
searxng-213041adc782e2f9c13038033f41f8935945a0e6.zip
[enh] themes - add result.metadata to result sub header
Signed-off-by: Markus Heiser <markus@darmarit.de>
-rw-r--r--searx/templates/oscar/macros.html1
-rw-r--r--searx/templates/simple/macros.html1
2 files changed, 2 insertions, 0 deletions
diff --git a/searx/templates/oscar/macros.html b/searx/templates/oscar/macros.html
index 0e9dc227a..fbf181518 100644
--- a/searx/templates/oscar/macros.html
+++ b/searx/templates/oscar/macros.html
@@ -22,6 +22,7 @@
{%- if result.publishedDate %}<time class="text-muted" datetime="{{ result.pubdate }}" >{{ result.publishedDate }}</time>{% endif -%}
{%- if result.magnetlink %}<small> &bull; {{ result_link(result.magnetlink, icon('magnet') + _('magnet link'), "magnetlink", id) }}</small>{% endif -%}
{%- if result.torrentfile %}<small> &bull; {{ result_link(result.torrentfile, icon('download-alt') + _('torrent file'), "torrentfile", id) }}</small>{% endif -%}
+ {%- if result.metadata %} <div class="highlight">{{ result.metadata|safe }}</div>{% endif -%}
{%- endmacro %}
<!-- Draw result footer -->
diff --git a/searx/templates/simple/macros.html b/searx/templates/simple/macros.html
index 8b6851e0e..7d456b350 100644
--- a/searx/templates/simple/macros.html
+++ b/searx/templates/simple/macros.html
@@ -35,6 +35,7 @@
<!-- Draw result sub header -->
{%- macro result_sub_header(result) -%}
{% if result.publishedDate %}<time class="published_date" datetime="{{ result.pubdate }}" >{{ result.publishedDate }}</time>{% endif %}
+ {%- if result.metadata %} <div class="highlight">{{ result.metadata|safe }}</div>{% endif -%}
{%- endmacro -%}
<!-- Draw result sub footer -->