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 View File

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