templates: Improved sponsors page listing for sponsors without logos.
This commit is contained in:
parent
c46e6f539a
commit
a726124475
1 changed files with 4 additions and 4 deletions
|
@ -15,18 +15,18 @@
|
|||
|
||||
{% for sponsor in level.sponsors %}
|
||||
<div class="row">
|
||||
{% if sponsor.sponsor_logo %}
|
||||
<div class="col-md-4">
|
||||
<h2>
|
||||
{% if sponsor.sponsor_logo %}
|
||||
<a href="{{ sponsor.external_url }}">
|
||||
<img style="width: 90%; margin-right: 10%;" src="{% thumbnail sponsor.website_logo '600x320' %}" alt="{{ sponsor.name }}" />
|
||||
</a>
|
||||
{% else %}
|
||||
<a href="{{ sponsor.external_url }}">{{ sponsor.name }}</a>
|
||||
{% endif %}
|
||||
</h2>
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
{% else %}
|
||||
<div class="col-md-12">
|
||||
{% endif %}
|
||||
<h3><a href="{{ sponsor.external_url }}">{{ sponsor.name }}</a></h3>
|
||||
<p>{{ sponsor.listing_text|urlize|linebreaks }}</p>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue