diff options
author | Thomas Pointhuber <thomas.pointhuber@gmx.at> | 2014-09-27 13:25:12 +0200 |
---|---|---|
committer | Thomas Pointhuber <thomas.pointhuber@gmx.at> | 2014-10-05 14:40:46 +0200 |
commit | 6fa5f02d0b6a5cdd65216b689f217a42beb7070f (patch) | |
tree | 245aba5dec6a597f7dbf616d395848036256adfd | |
parent | f3b565e17ecd4c875381a3a212d73fb065f9a89d (diff) | |
download | searxng-6fa5f02d0b6a5cdd65216b689f217a42beb7070f.tar.gz searxng-6fa5f02d0b6a5cdd65216b689f217a42beb7070f.zip |
oscar template: improve image results
-rw-r--r-- | searx/templates/oscar/result_templates/images.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/searx/templates/oscar/result_templates/images.html b/searx/templates/oscar/result_templates/images.html index 07b427d78..48ed5dece 100644 --- 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>
|