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 %}
|
{% sponsor_levels as levels %}
|
||||||
|
|
||||||
<h4>Sponsors</h4>
|
<hr />
|
||||||
|
|
||||||
|
<h3>Sponsors</h3>
|
||||||
|
|
||||||
<div class="sponsor-list">
|
<div class="sponsor-list">
|
||||||
{% for level in levels %}
|
{% for level in levels %}
|
||||||
{% if level.sponsors %}
|
{% if level.sponsors %}
|
||||||
<h3>{{ level.name }}</h3>
|
|
||||||
|
|
||||||
{% for sponsor in level.sponsors %}
|
<div style="height: 1em; "></div>
|
||||||
<div>
|
|
||||||
{% if sponsor.website_logo %}
|
<h4>{{ level.name }}</h4>
|
||||||
<a href="{{ sponsor.external_url }}" title="{{ sponsor.name }}">
|
|
||||||
<img src="{% thumbnail sponsor.website_logo '150x90' %}" alt="{{ sponsor.name }}" />
|
{% for sponsor in level.sponsors %}
|
||||||
</a>
|
<div>
|
||||||
{% else %}
|
{% if sponsor.website_logo %}
|
||||||
<a href="{{ sponsor.external_url }}" title="{{ sponsor.name }}">{{ sponsor.name }}</a>
|
<a href="{{ sponsor.external_url }}" title="{{ sponsor.name }}">
|
||||||
{% endif %}
|
<img src="{% thumbnail sponsor.website_logo '600x360' %}" alt="{{ sponsor.name }}" style="width: 100%" />
|
||||||
</div>
|
</a>
|
||||||
{% endfor %}
|
{% else %}
|
||||||
|
<a href="{{ sponsor.external_url }}" title="{{ sponsor.name }}">{{ sponsor.name }}</a>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -80,6 +80,32 @@
|
||||||
|
|
||||||
<div class="container homepage-block-content">
|
<div class="container homepage-block-content">
|
||||||
<h1>Sponsors</h1>
|
<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>
|
||||||
|
|
||||||
<div class="container homepage-block-footer">
|
<div class="container homepage-block-footer">
|
||||||
|
|
Loading…
Reference in a new issue