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

All Listings

{% if Listings %}
{% for listing in Listings %}
Preview not found

{{ listing.title }}


{% if not listing.closed %}

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

{% else %}

CLOSED
This listing is over.

{% for bidding in listing.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 listing.closed %} {% elif user.is_authenticated %}
{% csrf_token %} {% if user not in listing.watchlists.all %} {% else %} {% endif %}
{% else %} log in to watch this listing {% endif %}
{% endfor %}
{% else %}


Seems to be no listings in this Auction!!

{% endif %} {% endblock %}