From f43b52e6b57ff70ec1d290943de1b0d69c578fde Mon Sep 17 00:00:00 2001 From: Aurélien Bompard Date: Wed, 20 Nov 2013 19:19:36 +0100 Subject: Protect against empty list properties --- hyperkitty/templates/overview.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/hyperkitty/templates/overview.html b/hyperkitty/templates/overview.html index 7bc0d5d..edb98ca 100644 --- a/hyperkitty/templates/overview.html +++ b/hyperkitty/templates/overview.html @@ -20,8 +20,14 @@
-

{{ mlist.display_name }}

-

{{ mlist.description}}

+

+ {% if mlist.display_name %} + {{ mlist.display_name }} + {% else %} + {{ mlist.name|until:"@" }} + {% endif %} +

+

{{ mlist.description|default_if_none:"" }}

-- cgit