From: Jan Szejko Date: Tue, 5 Jan 2016 14:21:36 +0000 (+0100) Subject: fixed when no collections X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/2fea31c78fb2dbbbabda91c64aab0760adba517c fixed when no collections --- diff --git a/src/wolnelektury/templates/main_page.html b/src/wolnelektury/templates/main_page.html index 44f05a8b5..c037b9f66 100755 --- a/src/wolnelektury/templates/main_page.html +++ b/src/wolnelektury/templates/main_page.html @@ -75,11 +75,13 @@ Zobacz katalog epok -
-

Kolekcje

- {% ssi_include 'catalogue_collection_box' pk=collection.pk %} - Zobacz katalog kolekcji -
+ {% if collection %} +
+

Kolekcje

+ {% ssi_include 'catalogue_collection_box' pk=collection.pk %} + Zobacz katalog kolekcji +
+ {% endif %}

{% trans "Recent publications" %}