]> git.ipfire.org Git - people/shoehn/ipfire.org.git/commitdiff
index: Fix wishlist box when there are items without an end date.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 12 Jan 2014 11:53:42 +0000 (12:53 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 12 Jan 2014 11:53:42 +0000 (12:53 +0100)
templates/index.html

index 2b3e5bca108bbf121bcdaaf8d9ed3f7bae07d8c4..4e123e5e82e3cdcc9e61adaa08547b0e1f672f7c 100644 (file)
                                                                <td>
                                                                        {% if item.is_new() %}
                                                                                <span class="label label-success pull-right">{{ _("NEW") }}</span>
-                                                                       {% elif item.remaining_days <= 10 %}
+                                                                       {% elif item.remaining_days and item.remaining_days <= 10 %}
                                                                                <span class="pull-right">
                                                                                        {{ _("one day left", "%(num)s days left", item.remaining_days) % { "num" : item.remaining_days } }}
                                                                                </span>