Changeset - c4568003402c
[Not reviewed]
0 2 0
Christopher Neugebauer - 4 years ago 2017-08-13 15:52:25
chrisjrn@gmail.com
Adds sponsors to places.
2 files changed with 48 insertions and 16 deletions:
0 comments (0 inline, 0 general)
pinaxcon/templates/_default_sidebar.html
Show inline comments
...
 
@@ -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>
 

	
 
            {% 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 }}" />
 
                        </a>
 
                    {% else %}
 
                        <a href="{{ sponsor.external_url }}" title="{{ sponsor.name }}">{{ sponsor.name }}</a>
 
                    {% endif %}
 
                </div>
 
            {% endfor %}
 

	
 
          <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>
 

	
 

	
pinaxcon/templates/static_pages/homepage.html
Show inline comments
...
 
@@ -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">
0 comments (0 inline, 0 general)