From c4568003402c63460bed3d1783ad79640958a194 Mon Sep 17 00:00:00 2001 From: Christopher Neugebauer Date: Sun, 13 Aug 2017 08:52:25 -0700 Subject: [PATCH] Adds sponsors to places. --- pinaxcon/templates/_default_sidebar.html | 36 +++++++++++-------- pinaxcon/templates/static_pages/homepage.html | 26 ++++++++++++++ 2 files changed, 47 insertions(+), 15 deletions(-) diff --git a/pinaxcon/templates/_default_sidebar.html b/pinaxcon/templates/_default_sidebar.html index e63831b..b5ed526 100644 --- a/pinaxcon/templates/_default_sidebar.html +++ b/pinaxcon/templates/_default_sidebar.html @@ -4,26 +4,32 @@ {% sponsor_levels as levels %} -

Sponsors

+
+ +

Sponsors

- - diff --git a/pinaxcon/templates/static_pages/homepage.html b/pinaxcon/templates/static_pages/homepage.html index cf99ffd..7de5715 100644 --- a/pinaxcon/templates/static_pages/homepage.html +++ b/pinaxcon/templates/static_pages/homepage.html @@ -80,6 +80,32 @@

Sponsors

+ + {% load sponsorship_tags %} + {% load thumbnail %} + + {% sponsor_levels as levels %} + +
+ {% for level in levels %} + {% if level.sponsors %} + {% for sponsor in level.sponsors %} +
+ {% if sponsor.website_logo %} + + {{ sponsor.name }} + + {% else %} + {{ sponsor.name }} + {% endif %} +
+ {% endfor %} + {% endif %} + {% endfor %} +
+ + +