From c47ec7131be40d01ee3a38a4b2e0715dda7aff1d Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Wed, 2 Oct 2019 21:17:29 +0200 Subject: [PATCH] Hide empty columns. --- setup.py | 6 +++--- sponsors/__init__.py | 4 ++-- sponsors/templates/sponsors/page.html | 4 +++- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/setup.py b/setup.py index db8d681..77e2826 100755 --- a/setup.py +++ b/setup.py @@ -23,11 +23,11 @@ def whole_trees(package_dir, paths): setup( name='django-sponsors', - version='2.1', + version='2.2', author='Marek Stępniowski', author_email='marek@stepniowski.com', - maintainer='Jan Szejko', - maintainer_email='jan.szejko@nowoczesnapolska.org.pl', + maintainer='Radek Czajka', + maintainer_email='radekczajka@nowoczesnapolska.org.pl', url='', packages=find_packages(), package_data={'sponsors': whole_trees('sponsors', ['templates', 'locale', 'static'])}, diff --git a/sponsors/__init__.py b/sponsors/__init__.py index e4ddc5b..2771385 100644 --- a/sponsors/__init__.py +++ b/sponsors/__init__.py @@ -3,5 +3,5 @@ # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. # __author__ = 'Marek Stępniowski, ' -__version__ = '1.1' -__maintainer__ = 'Radek Czajka ' +__version__ = '2.2' +__maintainer__ = 'Radek Czajka ' diff --git a/sponsors/templates/sponsors/page.html b/sponsors/templates/sponsors/page.html index fe36e0e..b06c96a 100644 --- a/sponsors/templates/sponsors/page.html +++ b/sponsors/templates/sponsors/page.html @@ -1,5 +1,6 @@
{% for column in sponsors %} + {% if column.sponsors %}

{{ column.name|default:" " }}

+ {% endif %} {% endfor %}
-
\ No newline at end of file + -- 2.20.1