logos that dont have links should not try and be links

This commit is contained in:
Sanj 2012-03-12 13:40:23 +05:30
parent 38f562c180
commit fb0da16030

View File

@ -44,7 +44,9 @@
Supported by: <br />
{% for s in sponsors %}
{% thumbnail s.logo "120" crop="center" as thumb %}
<a href="{{ s.url }}" target="_blank"><img alt="{{ s.name }}" src="{{ thumb.url }}" /></a>
{% if s.url %} <a href="{{ s.url }}" target="_blank"> {% endif %}
<img alt="{{ s.name }}" src="{{ thumb.url }}" />
{% if s.url %} </a> {% endif %}
{% endthumbnail %}
{% endfor %}
{% endif %}