Changeset - bf2f226b8dd7
[Not reviewed]
0 1 0
Brett Smith - 4 years ago 2020-01-23 16:34:30
brettcsmith@brettcsmith.org
templates: Try to bugfix rendering sponsors without logos.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
pinaxcon/templates/_default_sidebar.html
Show inline comments
...
 
@@ -12,25 +12,25 @@ Supporter of our work year-round!</p>
 
</div>
 

	
 
<h3>Sponsors</h3>
 

	
 
<div class="sponsor-list">
 
    {% for level in levels %}
 
        {% if level.sponsors %}
 

	
 
          <h4>{{ level.name }}</h4>
 

	
 
          {% for sponsor in level.sponsors %}
 
              <div>
 
                  {% if sponsor.website_logo %}
 
                  {% if sponsor.sponsor_logo %}
 
                      <a href="{{ sponsor.external_url }}">
 
                          <img src="{% thumbnail sponsor.website_logo '600x360' %}" alt="{{ sponsor.name }}">
 
                      </a>
 
                  {% else %}
 
                      <a href="{{ sponsor.external_url }}">{{ sponsor.name }}</a>
 
                  {% endif %}
 
              </div>
 

	
 
          {% endfor %}
 

	
 
        {% endif %}
 

	
0 comments (0 inline, 0 general)