diff options
author | Adam Tauber <asciimoo@gmail.com> | 2016-12-09 18:48:54 +0100 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2016-12-09 18:59:24 +0100 |
commit | 7e1f27e45924147cc2219ddb9299460f202b206b (patch) | |
tree | b38b791e0e4562f3d2774bf9c0b10978a8ee5981 | |
parent | 39f5035e1399713af7b11081e56d8f1a479a7b3a (diff) | |
download | searxng-7e1f27e45924147cc2219ddb9299460f202b206b.tar.gz searxng-7e1f27e45924147cc2219ddb9299460f202b206b.zip |
[enh] add author to image result content
-rw-r--r-- | searx/templates/oscar/result_templates/images.html | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/searx/templates/oscar/result_templates/images.html b/searx/templates/oscar/result_templates/images.html index f7bcf0786..b23f34915 100644 --- a/searx/templates/oscar/result_templates/images.html +++ b/searx/templates/oscar/result_templates/images.html @@ -13,7 +13,12 @@ </div>
<div class="modal-body">
<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 }}">
- {% if result.content %}<p class="result-content">{{ result.content|safe }}</p>{% endif %}
+ {% if result.author %}<span class="photo-author">{{ result.author }}</span><br />{% endif %}
+ {% if result.content %}
+ <p class="result-content">
+ {{ result.content }}
+ </p>
+ {% endif %}
</div>
<div class="modal-footer">
<div class="clearfix"></div>
|