From: Radek Czajka Date: Wed, 2 Oct 2019 19:17:29 +0000 (+0200) Subject: Hide empty columns. X-Git-Tag: 2.2 X-Git-Url: https://git.mdrn.pl/django-sponsors.git/commitdiff_plain/c47ec7131be40d01ee3a38a4b2e0715dda7aff1d?ds=sidebyside;hp=b2921fcf726206f26c8f875099f6b6f88b40d394 Hide empty columns. --- 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 +