Update symposion/templates/sponsorship/_sponsor_link.html

Improved reference format and used pk rather than id 
- thanks to trbs for the suggestion
This commit is contained in:
Steve Holden 2013-01-21 09:20:11 -08:00
parent 2e7f8259d8
commit 8afa17b1c1

View file

@ -2,9 +2,9 @@
{% spaceless %} {% spaceless %}
<a href="{{ sponsor.external_url }}"> <a href="{{ sponsor.external_url }}">
{% if dimensions %} {% if dimensions %}
<img id="Sponsor{{ sponsor.id }} src="{% thumbnail sponsor.logo dimensions %}" alt="{{ sponsor.name }}" /> <img id="sponsor_{{ sponsor.pk }}" src="{% thumbnail sponsor.logo dimensions %}" alt="{{ sponsor.name }}" />
{% else %} {% else %}
<img id="Sponsor{{ sponsor.id }}" src="{% thumbnail sponsor.logo '150x150' %}" alt="{{ sponsor.name }}" /> <img id="sponsor_{{ sponsor.pk }}" src="{% thumbnail sponsor.logo '150x150' %}" alt="{{ sponsor.name }}" />
{% endif %} {% endif %}
</a> </a>
{% endspaceless %} {% endspaceless %}