Prevent empty <ul></ul> in base_category.html

Issue #123 resolved
Anonymous created an issue

Currently we have:

{{{ <ul> {% for product in category.product_set.active %} ...

{% endfor %} </ul> }}}

This would generate better HTML in the event of empty categories {{{ {% for product in category.product_set.active %} {% if forloop.first %} <ul> {% endif %} ... {% if forloop.last %} </ul> {% endif %} {% endfor %} }}}

Reported by baumer1122

Comments (2)

  1. Log in to comment