copyleftconf-website/pinaxcon/templates/_default_sidebar.html
Christopher Neugebauer c456800340 Adds sponsors to places.
2017-08-13 08:52:25 -07:00

35 lines
928 B
HTML

{% load sponsorship_tags %}
{% load thumbnail %}
{% load pinax_boxes_tags %}
{% sponsor_levels as levels %}
<hr />
<h3>Sponsors</h3>
<div class="sponsor-list">
{% for level in levels %}
{% if level.sponsors %}
<div style="height: 1em; "></div>
<h4>{{ level.name }}</h4>
{% for sponsor in level.sponsors %}
<div>
{% if sponsor.website_logo %}
<a href="{{ sponsor.external_url }}" title="{{ sponsor.name }}">
<img src="{% thumbnail sponsor.website_logo '600x360' %}" alt="{{ sponsor.name }}" style="width: 100%" />
</a>
{% else %}
<a href="{{ sponsor.external_url }}" title="{{ sponsor.name }}">{{ sponsor.name }}</a>
{% endif %}
</div>
{% endfor %}
{% endif %}
{% endfor %}
</div>