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 %}
|
||||
<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 %}
|
||||
|
|
Loading…
Reference in a new issue