symposion_app/symposion/templates/sponsorship/_sponsor_link.html

11 lines
387 B
HTML
Raw Normal View History

2012-08-14 07:49:57 +00:00
{% load thumbnail %}
{% spaceless %}
<a href="{{ sponsor.external_url }}">
{% if dimensions %}
<img id="sponsor_{{ sponsor.pk }}" src="{% thumbnail sponsor.logo dimensions %}" alt="{{ sponsor.name }}" />
2012-08-14 07:49:57 +00:00
{% else %}
<img id="sponsor_{{ sponsor.pk }}" src="{% thumbnail sponsor.logo '150x150' %}" alt="{{ sponsor.name }}" />
2012-08-14 07:49:57 +00:00
{% endif %}
</a>
{% endspaceless %}