{% extends "auctions/layout.html"%} {% block body %}

Listings under category "{{ cat_name }}"

{% if listings %}
{% for list in listings %}
Preview not found

{{ list.title }}


{% if not list.closed %}

{% for bidding in list.bidding_listing.all %} bid price : ${{bidding.bid_value}}
Last bid by: {{bidding.user}}
created by: {{list.user}}
{% endfor %} created on {{list.date_added}}

{% else %}

CLOSED
This listing is over.

{% for bidding in list.bidding_listing.all %} {% if user == bidding.user %} You won this listing!!! {% else %} This is won by @{{ bidding.user }} for ${{bidding.bid_value}} {% endif %} {% endfor %}

{% endif %}
{% if list.closed %} {% elif user.is_authenticated %}
{% csrf_token %} {% if user not in list.watchlists.all %} {% else %} {% endif %}
{% else %} log in to watch this listing {% endif %}
{% endfor %}
{% else %}


Seems to be no listings in this category

{% endif %} {% endblock %}