Changeset - 077beca34db5
[Not reviewed]
0 1 0
Joshua Simmons - 4 years ago 2017-08-09 03:17:52
i@joshuasimmons.name
don't make the sidebar depend on the existence of a sponsor logo
1 file changed with 7 insertions and 3 deletions:
0 comments (0 inline, 0 general)
pinaxcon/templates/_default_sidebar.html
Show inline comments
...
 
@@ -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 %}
0 comments (0 inline, 0 general)