From: pebosi Date: Tue, 14 Jan 2014 22:38:42 +0000 (+0100) Subject: re-commit fix X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f1ad555dd7c2319c8225b6c18e34984d44213157;p=ipfire.org.git re-commit fix --- diff --git a/templates/index.html b/templates/index.html index 120c2b43..82c8da56 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 } }}