fe36e0e82fa9c51a341162b7fd02569de58095ef
[django-sponsors.git] / sponsors / templates / sponsors / page.html
1 <div class="sponsors-page">
2     {% for column in sponsors %}
3         <div class="sponsors-column">
4             <p class="sponsors-column-name">{{ column.name|default:"&nbsp;" }}</p>
5             <div class='sponsor-logos'>
6                 {% for offset, sponsor in column.sponsors %}
7                     {% with sponsor.size as thumb_size %}
8                     <a href="{{ sponsor.url }}" title="{{ sponsor.description }}" 
9                         style='display:block; background: url({{ page.sprite.url }}) 0px {{ offset }}px no-repeat; width: {{ thumb_size.0 }}px; height: {{ thumb_size.1 }}px;'>
10                     </a>
11                     {% endwith %}
12                 {% endfor %}
13             </div>
14         </div>
15     {% endfor %}
16     <div style="clear: both"></div>
17 </div>