copyleftconf-website/pinaxcon/templates/_default_sidebar.html

34 lines
920 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
<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 %}
2017-08-13 15:52:25 +00:00
{% endfor %}
</div>