symposion_app/symposion/templates/sponsorship/_sponsor_link.html
Steve Holden 8afa17b1c1 Update symposion/templates/sponsorship/_sponsor_link.html
Improved reference format and used pk rather than id 
- thanks to trbs for the suggestion
2013-01-21 09:20:11 -08:00

10 lines
387 B
HTML

{% load thumbnail %}
{% spaceless %}
<a href="{{ sponsor.external_url }}">
{% if dimensions %}
<img id="sponsor_{{ sponsor.pk }}" src="{% thumbnail sponsor.logo dimensions %}" alt="{{ sponsor.name }}" />
{% else %}
<img id="sponsor_{{ sponsor.pk }}" src="{% thumbnail sponsor.logo '150x150' %}" alt="{{ sponsor.name }}" />
{% endif %}
</a>
{% endspaceless %}