summaryrefslogtreecommitdiff
path: root/searx/templates/simple/macros.html
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2020-06-09 00:31:52 +0200
committerAdam Tauber <asciimoo@gmail.com>2020-06-09 00:31:52 +0200
commitf0819e8826b2e8c694172296292a30198e3e60c1 (patch)
tree7fde72af304c7c7bb53da7d557fdcde47ad51f7f /searx/templates/simple/macros.html
parentc6ca468df2cf0813619eb67912d3b34ac8fdfac6 (diff)
downloadsearxng-f0819e8826b2e8c694172296292a30198e3e60c1.tar.gz
searxng-f0819e8826b2e8c694172296292a30198e3e60c1.zip
[enh] add engine names to results as classes - closes #670
Diffstat (limited to 'searx/templates/simple/macros.html')
-rw-r--r--searx/templates/simple/macros.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/templates/simple/macros.html b/searx/templates/simple/macros.html
index f0b36276c..cacbbec9f 100644
--- a/searx/templates/simple/macros.html
+++ b/searx/templates/simple/macros.html
@@ -26,7 +26,7 @@
<!-- Draw result header -->
{% macro result_header(result, favicons, image_proxify) -%}
-<article class="result {% if result['template'] %}result-{{ result.template|replace('.html', '') }}{% else %}result-default{% endif %} {% if result['category'] %}category-{{ result['category'] }}{% endif %}">
+<article class="result {% if result['template'] %}result-{{ result.template|replace('.html', '') }}{% else %}result-default{% endif %} {% if result['category'] %}category-{{ result['category'] }}{% endif %}{% for e in result.engines %} {{ e }}{% endfor %}">
{%- if result.img_src %}{{ result_open_link(result.url) }}<img class="image" src="{{ image_proxify(result.img_src) }}" alt="{{ result.title|striptags }}" title="{{ result.title|striptags }}" class="image" />{{ result_close_link() }}{% endif -%}
{%- if result.thumbnail %}{{ result_open_link(result.url) }}<img class="thumbnail" src="{{ image_proxify(result.thumbnail) }}" title="{{ result.title|striptags }}" alt="{{ result.title|striptags }}"/>{{ result_close_link() }}{% endif -%}
<h3>{{ result_link(result.url, result.title|safe) }}</h3>