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

{% 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 %}

Add ids to sponsor images to allow linking to each sponsor's entry.
Add ids to sponsor images to allow linking to each sponsor's entry.
