Files @ a726124475c7
Branch filter:

Location: CopyleftConf/copyleftconf-website/pinaxcon/templates/symposion/sponsorship/list.html

Brett Smith
templates: Improved sponsors page listing for sponsors without logos.
{% extends "symposion/sponsorship/list_.html" %}

{% load sponsorship_tags %}
{% load thumbnail %}

{% block lede %}
  We're grateful to the following organizations, who've made a substantial contribution to CopyleftConf 2020. Learn how you can join us by checking out <a href="/sponsors/become-a-sponsor">our prospectus</a>.
{% endblock %}

{% block content %}
  {% sponsor_levels as levels %}
  {% for level in levels %}
    {% if level.sponsors %}
      <h2>{{ level.name }}</h2>

      {% for sponsor in level.sponsors %}
          <div class="row">
           {% if sponsor.sponsor_logo %}
            <div class="col-md-4">
              <h2>
                <a href="{{ sponsor.external_url }}">
                  <img style="width: 90%; margin-right: 10%;" src="{% thumbnail sponsor.website_logo '600x320' %}" alt="{{ sponsor.name }}" />
                </a>
              </h2>
            </div>
            <div class="col-md-8">
           {% else %}
            <div class="col-md-12">
           {% endif %}
              <h3><a href="{{ sponsor.external_url }}">{{ sponsor.name }}</a></h3>
              <p>{{ sponsor.listing_text|urlize|linebreaks }}</p>
            </div>
          </div>
      {% endfor %}
    {% endif %}
  {% endfor %}
{% endblock %}