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 %} {% for sponsor in level.sponsors %}
<div style="margin: 10px 0;"> <div style="margin: 10px 0;">
{% if sponsor.website_logo %}
<a href="{{ sponsor.external_url }}"> <a href="{{ sponsor.external_url }}">
<img src="{% thumbnail sponsor.website_logo '100x60' %}" alt="{{ sponsor.name }}" /> <img src="{% thumbnail sponsor.website_logo '100x60' %}" alt="{{ sponsor.name }}" />
</a> </a>
{% else %}
<a href="{{ sponsor.external_url }}">{{ sponsor.name }}</a>
{% endif %}
</div> </div>
{% endfor %} {% endfor %}
{% endif %} {% endif %}