don't make the sidebar depend on the existence of a sponsor logo
This commit is contained in:
parent
59cebbb861
commit
077beca34d
1 changed files with 7 additions and 3 deletions
|
@ -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 %}
|
||||||
|
|
Loading…
Reference in a new issue