Win auctions
{% if products.count != 0 %}
{% for product in products %}
{% for prod in products %}
{% if forloop.counter0 > forloop.parentloop.counter0 and forloop.parentloop.counter0|add:min_products > forloop.counter0 or min_products > products.count|sub:forloop.parentloop.counter0 and min_products|sub:products.count|add:forloop.parentloop.counter0 > forloop.counter0 %}
{% endif %}
{% endfor %}
{% endfor %}
No auctions won
{% endif%}Participated auctions
{% if products_participated.count != 0 %}
{% for product in products_participated %}
{% for prod in products_participated %}
{% if forloop.counter0 > forloop.parentloop.counter0 and forloop.parentloop.counter0|add:min_participated > forloop.counter0 or min_participated > products_participated.count|sub:forloop.parentloop.counter0 and min_participated|sub:products_participated.count|add:forloop.parentloop.counter0 > forloop.counter0 %}
{% endif %}
{% endfor %}
{% endfor %}
There are no participated auctions
{% endif%}Sales
{% if sales.count != 0 %}
{% for product in sales %}
{% for prod in sales %}
{% if forloop.counter0 > forloop.parentloop.counter0 and forloop.parentloop.counter0|add:min_sales > forloop.counter0 or min_sales > sales.count|sub:forloop.parentloop.counter0 and min_sales|sub:sales.count|add:forloop.parentloop.counter0 > forloop.counter0 %}
{% endif %}
{% endfor %}
{% endfor %}