Adds sponsors to places.
This commit is contained in:
parent
7ef38f0643
commit
c456800340
2 changed files with 47 additions and 15 deletions
|
@ -4,26 +4,32 @@
|
|||
|
||||
{% sponsor_levels as levels %}
|
||||
|
||||
<h4>Sponsors</h4>
|
||||
<hr />
|
||||
|
||||
<h3>Sponsors</h3>
|
||||
|
||||
<div class="sponsor-list">
|
||||
{% for level in levels %}
|
||||
{% if level.sponsors %}
|
||||
<h3>{{ level.name }}</h3>
|
||||
|
||||
<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 '150x90' %}" alt="{{ 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>
|
||||
|
||||
|
||||
|
|
|
@ -80,6 +80,32 @@
|
|||
|
||||
<div class="container homepage-block-content">
|
||||
<h1>Sponsors</h1>
|
||||
|
||||
{% load sponsorship_tags %}
|
||||
{% load thumbnail %}
|
||||
|
||||
{% sponsor_levels as levels %}
|
||||
|
||||
<div class="row">
|
||||
{% for level in levels %}
|
||||
{% if level.sponsors %}
|
||||
{% for sponsor in level.sponsors %}
|
||||
<div class="col-md-3">
|
||||
{% 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>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="container homepage-block-footer">
|
||||
|
|
Loading…
Reference in a new issue