Changeset - 077beca34db5
[Not reviewed]
0 1 0
Joshua Simmons - 7 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
...
 
@@ -12,11 +12,15 @@
 
            <h3 style="margin-top: 3em;">{{ level.name }}</h3>
 

	
 
            {% 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 %}
 
    {% endfor %}
0 comments (0 inline, 0 general)