From: Michael Tremer Date: Sun, 12 Jan 2014 11:53:42 +0000 (+0100) Subject: index: Fix wishlist box when there are items without an end date. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ce800414ca4fdc7be267f7a14bafa3727bb77ab7;p=ipfire.org.git index: Fix wishlist box when there are items without an end date. --- diff --git a/templates/index.html b/templates/index.html index 2b3e5bca..4e123e5e 100644 --- a/templates/index.html +++ b/templates/index.html @@ -182,7 +182,7 @@ {% if item.is_new() %} {{ _("NEW") }} - {% elif item.remaining_days <= 10 %} + {% elif item.remaining_days and item.remaining_days <= 10 %} {{ _("one day left", "%(num)s days left", item.remaining_days) % { "num" : item.remaining_days } }}