commit: 6fa5f02d0b6a5cdd65216b689f217a42beb7070f
parent f3b565e17ecd4c875381a3a212d73fb065f9a89d
Author: Thomas Pointhuber <thomas.pointhuber@gmx.at>
Date: Sat, 27 Sep 2014 13:25:12 +0200
oscar template: improve image results
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/searx/templates/oscar/result_templates/images.html b/searx/templates/oscar/result_templates/images.html
@@ -11,8 +11,12 @@
</div>
<div class="modal-body">
<img class="img-responsive center-block" src="{{ result.img_src }}" alt="{{ result.title }}">
+ {% if result.content %}<p>{{ result.content|safe }}</p>{% endif %}
</div>
<div class="modal-footer">
+ <span class="label label-default pull-right">{{ result.engine }}</span>
+ <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>
+ <div class="clearfix"></div>
<a href="{{ result.img_src }}" class="btn btn-default">{{ _('Get image') }}</a>
<a href="{{ result.url }}" class="btn btn-default">{{ _('View source') }}</a>
</div>