Tighter sponsors html, every pageview gets ~10kB lighter.
[wolnelektury.git] / apps / sponsors / templates / sponsors / page.html
index d0adbbf..5a3b38e 100644 (file)
@@ -1,15 +1,16 @@
+{% spaceless %}
+<style type="text/css">.sponsors-page a{background-image:url({{ page.sprite.url }});}</style>
 <div class="sponsors-page">
     {% for column in sponsors %}
         <div class="sponsors-column">
             <p class="sponsors-column-name">{{ column.name|default:"&nbsp;" }}</p>
-            <div class='sponsors'>
-                {% for sponsor in column.sponsors %}
-                    {% if sponsor.url %}<a href="{{ sponsor.url }}" title="{{ sponsor.description }}" >{% endif %}
-                    <img src="{{ sponsor.logo.thumbnail }}" alt="{{ sponsor.name }}"/>
-                    {% if sponsor.url %}</a>{% endif %}
+            <div class='sponsor-logos'>
+                {% for offset, sponsor in column.sponsors %}
+                    <a href="{{ sponsor.url }}" title="{{ sponsor.description }}" style='background-position: 0px {{ offset }}px;'></a>
                 {% endfor %}
             </div>
         </div>
     {% endfor %}
     <div style="clear: both"></div>
-</div>
\ No newline at end of file
+</div>
+{% endspaceless %}