{% extends 'app/base.html' %} {% load static %} {% block css %} {% endblock %} {% block content %} {% if products|length != 0 %} {% for product in products %} {{ product.title }} {{product.finished_date|date:"M d, Y H:i:s" }} {% if product.type == 'dutch' %} {{product.created_date|date:"M d, Y H:i:s" }} {{product.initial_bid }} {{product.final_bid }} {% elif product.type == 'clock' %} Current bid: {% if product.bid_set.count == 0 %}{{product.initial_bid}}{% else %}{{product.bid_set.last.price}}{% endif %}€ {% endif %} {% endfor %} {% else %} There are no products on sale {% endif %} {% endblock %} {% block js %} {% endblock %}