Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 3 commits
  • 4 files changed
  • 0 comments
  • 1 contributor
2  pycon/sponsorship/models.py
@@ -81,7 +81,7 @@ def website_logo_url(self):
81 81
     def listing_text(self):
82 82
         if not hasattr(self, "_listing_text"):
83 83
             self._listing_text = None
84  
-            benefits = self.sponsor_benefits.filter(benefit__id=8)
  84
+            benefits = self.sponsor_benefits.filter(benefit__id=7)
85 85
             if benefits.count():
86 86
                 self._listing_text = benefits[0].text
87 87
         return self._listing_text
2  symposion/static/css/site.css
1 addition, 1 deletion not shown
2  symposion/static/less/site.less
@@ -493,7 +493,7 @@ nav#slider-nav {
493 493
   .sponsor-content {
494 494
     border:3px solid #f7f7f3;
495 495
     padding:15px;
496  
-    height:260px;
  496
+    height:450px;
497 497
   }
498 498
 
499 499
   h2 {
50  symposion/templates/homepage.html
@@ -71,51 +71,15 @@
71 71
     <div class="span12">
72 72
         <h3>Sponsors</h3>
73 73
         <ul id="slider">
  74
+            {% sponsors as all_sponsors %}
74 75
             {# sponsors without levels, 8 per each li #}
75  
-            <li>
76  
-                <a href="#">
77  
-                    <span class="sp-logo"><img src="{{ STATIC_URL }}img/temp/14c9a9f82732cd57242401955764a286.png" width="100" alt="14c9a9f82732cd57242401955764a286"></span>
78  
-                    <span class="level">Diamond</span>
  76
+            {% for sponsor in all_sponsors %}
  77
+                {% if forloop.first or forloop.counter0|divisibleby:"8" %}<li>{% endif %}
  78
+                <a href="{{ sponsor.external_url }}">
  79
+                    <img src="{% thumbnail sponsor.website_logo '100x60' %}" alt="{{ sponsor.name }}" />
79 80
                 </a>
80  
-                <a href="#">
81  
-                    <span class="sp-logo"><img src="{{ STATIC_URL }}img/temp/14c9a9f82732cd57242401955764a286.png" width="100" alt="14c9a9f82732cd57242401955764a286"></span>
82  
-                    <span class="level">Diamond</span>
83  
-                </a>
84  
-                <a href="#">
85  
-                    <span class="sp-logo"><img src="{{ STATIC_URL }}img/temp/14c9a9f82732cd57242401955764a286.png" width="100" alt="14c9a9f82732cd57242401955764a286"></span>
86  
-                    <span class="level">Diamond</span>
87  
-                </a>
88  
-                <a href="#">
89  
-                    <span class="sp-logo"><img src="{{ STATIC_URL }}img/temp/14c9a9f82732cd57242401955764a286.png" width="100" alt="14c9a9f82732cd57242401955764a286"></span>
90  
-                    <span class="level">Diamond</span>
91  
-                </a>
92  
-                <a href="#">
93  
-                    <span class="sp-logo"><img src="{{ STATIC_URL }}img/temp/14c9a9f82732cd57242401955764a286.png" width="100" alt="14c9a9f82732cd57242401955764a286"></span>
94  
-                    <span class="level">Diamond</span>
95  
-                </a>
96  
-                <a href="#">
97  
-                    <span class="sp-logo"><img src="{{ STATIC_URL }}img/temp/14c9a9f82732cd57242401955764a286.png" width="100" alt="14c9a9f82732cd57242401955764a286"></span>
98  
-                    <span class="level">Diamond</span>
99  
-                </a>
100  
-                <a href="#">
101  
-                    <span class="sp-logo"><img src="{{ STATIC_URL }}img/temp/14c9a9f82732cd57242401955764a286.png" width="100" alt="14c9a9f82732cd57242401955764a286"></span>
102  
-                    <span class="level">Diamond</span>
103  
-                </a>
104  
-                <a href="#">
105  
-                    <span class="sp-logo"><img src="{{ STATIC_URL }}img/temp/14c9a9f82732cd57242401955764a286.png" width="100" alt="14c9a9f82732cd57242401955764a286"></span>
106  
-                    <span class="level">Diamond</span>
107  
-                </a>
108  
-            </li>
109  
-            <li>
110  
-                <a href="#">
111  
-                    <span class="sp-logo"><img src="{{ STATIC_URL }}img/temp/14c9a9f82732cd57242401955764a286.png" width="100" alt="14c9a9f82732cd57242401955764a286"></span>
112  
-                    <span class="level">Diamond</span>
113  
-                </a>
114  
-                <a href="#">
115  
-                    <span class="sp-logo"><img src="{{ STATIC_URL }}img/temp/14c9a9f82732cd57242401955764a286.png" width="100" alt="14c9a9f82732cd57242401955764a286"></span>
116  
-                    <span class="level">Diamond</span>
117  
-                </a>
118  
-            </li>
  81
+                {% if forloop.counter|divisibleby:"8" or forloop.last %}</li>{% endif %}
  82
+            {% endfor %}
119 83
 
120 84
             {% comment %}
121 85
                 # sponsors by level

No commit comments for this range

Something went wrong with that request. Please try again.