ソースを参照

oscar template: improve image results

Thomas Pointhuber 10 年 前
コミット
6fa5f02d0b
共有1 個のファイルを変更した4 個の追加0 個の削除を含む
  1. 4
    0
      searx/templates/oscar/result_templates/images.html

+ 4
- 0
searx/templates/oscar/result_templates/images.html ファイルの表示

@@ -11,8 +11,12 @@
11 11
             </div>
12 12
             <div class="modal-body">
13 13
                 <img class="img-responsive center-block" src="{{ result.img_src }}" alt="{{ result.title }}">
14
+                {% if result.content %}<p>{{ result.content|safe }}</p>{% endif %}
14 15
             </div>
15 16
             <div class="modal-footer">
17
+                <span class="label label-default pull-right">{{ result.engine }}</span>
18
+                <p class="text-muted pull-left">{% if result['favicon'] %}<img width="14" height="14" class="favicon" src="static/{{theme}}/img/icon_{{result['favicon']}}.ico" />{% endif %} {{ result.pretty_url }}</p>
19
+                <div class="clearfix"></div>
16 20
                 <a href="{{ result.img_src }}" class="btn btn-default">{{ _('Get image') }}</a>
17 21
                 <a href="{{ result.url }}" class="btn btn-default">{{ _('View source') }}</a>
18 22
             </div>