瀏覽代碼

[enh] add author to image result content

Adam Tauber 8 年之前
父節點
當前提交
7e1f27e459
共有 1 個檔案被更改,包括 6 行新增1 行删除
  1. 6
    1
      searx/templates/oscar/result_templates/images.html

+ 6
- 1
searx/templates/oscar/result_templates/images.html 查看文件

@@ -13,7 +13,12 @@
13 13
             </div>
14 14
             <div class="modal-body">
15 15
                 <img class="img-responsive center-block" src="{% if result.thumbnail_src %}{{ image_proxify(result.thumbnail_src) }}{% else %}{{ image_proxify(result.img_src) }}{% endif %}" alt="{{ result.title|striptags }}">
16
-                {% if result.content %}<p class="result-content">{{ result.content|safe }}</p>{% endif %}
16
+                {% if result.author %}<span class="photo-author">{{ result.author }}</span><br />{% endif %}
17
+                {% if result.content %}
18
+                    <p class="result-content">
19
+                        {{ result.content }}
20
+                    </p>
21
+                {% endif %}
17 22
             </div>
18 23
             <div class="modal-footer">
19 24
                 <div class="clearfix"></div>