copyleftconf-website/pinaxcon/templates/_default_sidebar.html

32 lines
853 B
HTML
Raw Normal View History

{% load sponsorship_tags %}
{% load thumbnail %}
{% load pinax_boxes_tags %}
{% sponsor_levels as levels %}
2017-08-13 15:52:25 +00:00
<h3>Sponsors</h3>
<div class="sponsor-list">
{% for level in levels %}
{% if level.sponsors %}
2017-08-13 15:52:25 +00:00
<h4>{{ level.name }}</h4>
{% for sponsor in level.sponsors %}
<div>
{% if sponsor.website_logo %}
<a href="{{ sponsor.external_url }}" title="{{ sponsor.name }}">
2017-08-13 23:06:48 +00:00
<img src="{% thumbnail sponsor.website_logo '600x360' %}" alt="{{ sponsor.name }}">
2017-08-13 15:52:25 +00:00
</a>
{% else %}
<a href="{{ sponsor.external_url }}" title="{{ sponsor.name }}">{{ sponsor.name }}</a>
{% endif %}
</div>
{% endfor %}
{% endif %}
2017-08-13 15:52:25 +00:00
{% endfor %}
</div>