{% extends 'base.html' %} {% load determine_platform_fee %} {% block content %}

{{ item.name }}

{% if not item.available %}

This item is currently pending sale. Bidding is temporarily closed.

{% endif %}

Seller: {{ item.owner }}

Creation: {{ item.list_date | date:"d M Y H:i:s" }}

Last Updated: {{ item.last_updated | date:"d M Y H:i:s" }}

Description: {{ item.description }}

Asking Price (XMR): {{ item.ask_price_xmr }}

Available: {{ item.available }}

Location: {{ item.owner.profile.first.city }}, {{ item.owner.profile.first.state }}, {{ item.owner.profile.first.country }}

{% for img in item_images %} {{ img.thumbnail.name }} {% endfor %} {% if item.owner == user %} {% if item.available %}

Edit Delete

{% else %}

Item not available for editing

{% endif %} {% else %} {% if item.available %}

Bid

{% else %}

Item not available for bidding

{% endif %} {% endif %}
{% if item_bids %} {% for bid in item_bids %} {% endfor %}
Bid ID Bidder Bid Price (XMR) Platform Fees (XMR) Bid Accepted Location Actions
#{{ bid.id }} {{ bid.bidder }} {{ bid.bid_price_xmr }} {{ bid.bid_price_xmr | determine_platform_fee }} {{ bid.accepted }} {{ bid.bidder.profile.first.city }}, {{ bid.bidder.profile.first.state }}, {{ bid.bidder.profile.first.country }} {% if bid.accepted %} {% if bid.bidder == request.user or bid.item.owner == request.user %} View Sale {% endif %} {% else %} {% if bid.bidder == request.user %} Edit Delete {% elif bid.item.owner == request.user and item.available %} Accept {% endif %} {% endif %}
{% else %}

No bids for this item yet.

{% endif %}
{% endblock %}