From ce800414ca4fdc7be267f7a14bafa3727bb77ab7 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 12 Jan 2014 12:53:42 +0100 Subject: [PATCH] index: Fix wishlist box when there are items without an end date. --- templates/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } }} -- 2.47.3