Browse Source

Add title and alt on image in infobox

Cqoicebordel 10 years ago
parent
commit
8fb6ea1bf1
1 changed files with 2 additions and 1 deletions
  1. 2 1
      searx/templates/default/infobox.html

+ 2 - 1
searx/templates/default/infobox.html

@@ -1,6 +1,6 @@
 <div class="infobox">
   <h2>{{ infobox.infobox }}</h2>
-  {% if infobox.img_src %}<img src="{{ infobox.img_src }}" />{% endif %}
+  {% if infobox.img_src %}<img src="{{ infobox.img_src }}" title="{{ infobox.infobox|striptags }}" alt="{{ infobox.infobox|striptags }}" />{% endif %}
   <p>{{ infobox.entity }}</p>
   <p>{{ infobox.content | safe }}</p>
   {% if infobox.attributes %}
@@ -42,3 +42,4 @@
   <br />
   
 </div>
+ name=