Kaynağa Gözat

add missing result template

Noémi Ványi 6 yıl önce
ebeveyn
işleme
8f1fb9ae9f

+ 22
- 0
searx/templates/oscar/result_templates/products.html Dosyayı Görüntüle

@@ -0,0 +1,22 @@
1
+{% from 'oscar/macros.html' import draw_favicon, result_header, result_sub_header, result_footer_rtl, result_footer %}
2
+
3
+{{ result_header(result, favicons) }}
4
+{{ result_sub_header(result) }}
5
+
6
+<div class="container-fluid">
7
+    <div class="row">
8
+        <a href="{{ result.url }}" {% if results_on_new_tab %}target="_blank" rel="noopener noreferrer"{% else %}rel="noreferrer"{% endif %}><img class="thumbnail col-xs-6 col-sm-3 col-md-3 result-content" src="{{ image_proxify(result.thumbnail) }}" alt="{{ result.title|striptags }} {{ result.engine }}" /></a>
9
+        <p class="col-xs-12 col-sm-9 col-md-9 result-content">
10
+        {% if result.price %}<big>{{ result.price|safe }}</big></br>{% endif %}
11
+        {% if result.shipping %}<small>{{ result.shipping|safe }}</small></br>{% endif %}
12
+        {% if result.source_country %}<small>{{ result.source_country|safe }}</small></br>{% endif %}
13
+        {% if result.content %}{{ result.content|safe }}{% endif %}
14
+        </p>
15
+    </div>
16
+</div>
17
+
18
+{% if rtl %}
19
+{{ result_footer_rtl(result) }}
20
+{% else %}
21
+{{ result_footer(result) }}
22
+{% endif %}