]> git.0d.be Git - panikweb.git/blob - panikweb_templates/templates/combo/topik_menu_item.html
templates: add empty alt attributes to icon images
[panikweb.git] / panikweb_templates / templates / combo / topik_menu_item.html
1 {% load combo paniktags thumbnail %}
2 <li class="item">
3   <div class="topik inline cf">
4     <a class="block cf topik-link" href="{{page.get_online_url}}">
5     <div class="logo">
6       {% with page|image_file as logo %}
7         {% if logo %}
8           {% thumbnail logo "60x60" crop="50% 25%" as im %}
9           <img alt="" width="60" height="60" src="{{im.url}}"/>
10           {% endthumbnail %}
11         {% elif page.picture %}
12           {% thumbnail page.picture "60x60" crop="50% 25%" as im %}
13           <img alt="" width="60" height="60" src="{{im.url}}"/>
14           {% endthumbnail %}
15         {% else %}
16           <img alt="" src="/static/img/sound.png" width="60" height="60">
17         {% endif %}
18       {% endwith %}
19     </div>
20     <div class="content">
21       <div class="title">
22         <h5 class="title">{{page.title}}</h5>
23       </div>
24       <div class="smooth metas">
25         <span class="categories">{{category}}</span>
26       </div>
27     </div>
28     </a>
29   </div>
30 </li>