[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Debconf-team] DC17 website revamped



On 20/12/16 02:51 PM, Alexandre Viau wrote:
> Hello,
> 
> Thanks for the great work.
> 
> On 18/12/16 10:46 PM, Jerome Charaoui wrote:
>> please let us know of any mistakes to
>> correct or improvements we could implement.
> 
> Please show the sponsorship tiers, not just the sponsors.
> 
> For example, the preceding DebConf websites showed plat sponsors first,
> then the others.
> 
> See: https://debconf16.debconf.org/

I have attached a patch to this mail.

I have also pushed it in the sponsors_block_display_package branch of
the repository at git.debian.org/git/debconf-data/dc17.dc.o.git

Cheers,

-- 
Alexandre Viau
aviau@debian.org
From b261b6b96ee6173142321747b28b1fd9a3ac4b16 Mon Sep 17 00:00:00 2001
From: aviau <alexandre@alexandreviau.net>
Date: Tue, 20 Dec 2016 15:23:01 -0500
Subject: [PATCH] sponsors_block: display sponsorship package

---
 templates/wafer.sponsors/sponsors_block.html | 29 ++++++++++++++--------------
 1 file changed, 15 insertions(+), 14 deletions(-)

diff --git a/templates/wafer.sponsors/sponsors_block.html b/templates/wafer.sponsors/sponsors_block.html
index b5ef832..6ad1de9 100644
--- a/templates/wafer.sponsors/sponsors_block.html
+++ b/templates/wafer.sponsors/sponsors_block.html
@@ -1,16 +1,17 @@
-{% for package in packages %}
-  {% if package.sponsors.exists and package.order < 5 %}
-    <div class="row">
-      {% for sponsor in package.sponsors.all %}
-        <div class="col-lg-{% if package.name == 'Platinum'%}6{% elif package.name == 'Gold' %}3{% else %}2{% endif %}">
-          <div class="list-group sponsors-{{package.name | lower }}">
-            <a href="{{ sponsor.url }}" class="list-group-item">
-              <img src="{{ sponsor.files.first.item.url }}"
-                   alt="{{ sponsor.name }}">
-            </a>
-          </div>
-        </div>
-      {% endfor %}
+{% for package in packages.all %}
+  </div>
+    <h2>{{ package.name }} Sponsors</h2>
+  <div class="row">
+
+  {% for sponsor in package.sponsors.all %}
+    <div class="col-lg-{% if package.name == 'Platinum'%}6{% elif package.name == 'Gold' %}3{% else %}2{% endif %}">
+      <div class="list-group sponsors-{{package.name | lower }}">
+        <a href="{{ sponsor.url }}" class="list-group-item">
+          <img src="{{ sponsor.files.first.item.url }}"
+               alt="{{ sponsor.name }}">
+          </a>
+      </div>
     </div>
-  {% endif %}
+  {% endfor %}
+
 {% endfor %}
-- 
2.11.0

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: