From: Radek Czajka Date: Thu, 20 Feb 2014 13:16:21 +0000 (+0100) Subject: Tighter sponsors html, every pageview gets ~10kB lighter. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/b093329fa55998907111a1bd1a210c1a4e4100db Tighter sponsors html, every pageview gets ~10kB lighter. --- diff --git a/apps/sponsors/static/sponsors/css/sponsors.css b/apps/sponsors/static/sponsors/css/sponsors.css index 16643dfd4..f35e56dd7 100644 --- a/apps/sponsors/static/sponsors/css/sponsors.css +++ b/apps/sponsors/static/sponsors/css/sponsors.css @@ -15,3 +15,10 @@ .sponsors-page img { float: left; } + +.sponsors-page a { + display: block; + width: 120px; + height: 120px; + background-repeat: no-repeat; +} diff --git a/apps/sponsors/templates/sponsors/page.html b/apps/sponsors/templates/sponsors/page.html index 6340c53fc..5a3b38ec2 100644 --- a/apps/sponsors/templates/sponsors/page.html +++ b/apps/sponsors/templates/sponsors/page.html @@ -1,15 +1,16 @@ +{% spaceless %} +
{% for column in sponsors %}

{{ column.name|default:" " }}

{% endfor %}
-
\ No newline at end of file + +{% endspaceless %}