logo

searx

Unnamed repository; edit this file 'description' to name the repository.
commit: 7e1f27e45924147cc2219ddb9299460f202b206b
parent: 39f5035e1399713af7b11081e56d8f1a479a7b3a
Author: Adam Tauber <asciimoo@gmail.com>
Date:   Fri,  9 Dec 2016 18:48:54 +0100

[enh] add author to image result content

Diffstat:

searx/templates/oscar/result_templates/images.html | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git 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>