don't make the sidebar depend on the existence of a sponsor logo

This commit is contained in:
Joshua Simmons 2017-08-08 20:17:52 -07:00
parent 59cebbb861
commit 077beca34d

View file

@ -13,9 +13,13 @@
{% for sponsor in level.sponsors %}
<div style="margin: 10px 0;">
<a href="{{ sponsor.external_url }}">
<img src="{% thumbnail sponsor.website_logo '100x60' %}" alt="{{ sponsor.name }}" />
</a>
{% if sponsor.website_logo %}
<a href="{{ sponsor.external_url }}">
<img src="{% thumbnail sponsor.website_logo '100x60' %}" alt="{{ sponsor.name }}" />
</a>
{% else %}
<a href="{{ sponsor.external_url }}">{{ sponsor.name }}</a>
{% endif %}
</div>
{% endfor %}
{% endif %}