symposion_app/symposion/templates/sponsorship/_sponsor_link.html

10 lines
384 B
HTML

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