瀏覽代碼

Add alt for img

Add alt in infobox image.
Cqoicebordel 10 年之前
父節點
當前提交
42692aa2c5
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      searx/templates/oscar/infobox.html

+ 1
- 1
searx/templates/oscar/infobox.html 查看文件

@@ -3,7 +3,7 @@
3 3
         <h4 class="panel-title">{{ infobox.infobox }}</h4>
4 4
     </div>
5 5
     <div class="panel-body">
6
-        {% if infobox.img_src %}<img class="img-responsive center-block infobox_part" src="{{ infobox.img_src }}" />{% endif %}
6
+        {% if infobox.img_src %}<img class="img-responsive center-block infobox_part" src="{{ infobox.img_src }}" alt="{{ infobox.infobox }}" />{% endif %}
7 7
         {% if infobox.content %}<p class="infobox_part">{{ infobox.content }}</p>{% endif %}
8 8
 
9 9
         {% if infobox.attributes %}