Brett Smith - 10 months ago 2020-01-23 16:53:06
brettcsmith@brettcsmith.org
templates: Improved sponsors page listing for sponsors without logos.
1 file changed with 4 insertions and 4 deletions:
↑ Collapse Diff ↑
...
 
@@ -15,18 +15,18 @@
15 15
 

	
16 16
 
      {% for sponsor in level.sponsors %}
17 17
 
          <div class="row">
18
 
           {% if sponsor.sponsor_logo %}
18 19
 
            <div class="col-md-4">
19 20
 
              <h2>
20
 
                {% if sponsor.sponsor_logo %}
21 21
 
                <a href="{{ sponsor.external_url }}">
22 22
 
                  <img style="width: 90%; margin-right: 10%;" src="{% thumbnail sponsor.website_logo '600x320' %}" alt="{{ sponsor.name }}" />
23 23
 
                </a>
24
 
                {% else %}
25
 
                <a href="{{ sponsor.external_url }}">{{ sponsor.name }}</a>
26
 
                {% endif %}
27 24
 
              </h2>
28 25
 
            </div>
29 26
 
            <div class="col-md-8">
27
 
           {% else %}
28
 
            <div class="col-md-12">
29
 
           {% endif %}
30 30
 
              <h3><a href="{{ sponsor.external_url }}">{{ sponsor.name }}</a></h3>
31 31
 
              <p>{{ sponsor.listing_text|urlize|linebreaks }}</p>
32 32
 
            </div>
0 comments (0 inline, 0 general)