From 42602ff2c75f01bb51afc5057fcc6d186f96cf9b Mon Sep 17 00:00:00 2001 From: Priyatham-sai-chand Date: Tue, 27 Oct 2020 15:29:37 +0530 Subject: [PATCH] close listing fixes --- auctions/templates/auctions/index.html | 142 +++++++++++------------ auctions/templates/auctions/listing.html | 2 +- db.sqlite3 | Bin 253952 -> 253952 bytes 3 files changed, 72 insertions(+), 72 deletions(-) diff --git a/auctions/templates/auctions/index.html b/auctions/templates/auctions/index.html index 92b019c..5ec72b1 100644 --- a/auctions/templates/auctions/index.html +++ b/auctions/templates/auctions/index.html @@ -1,72 +1,72 @@ -{% extends "auctions/layout.html" %} - -{% block body %} -

Active Listings

- {% if Listings %} -
- {% for listing in Listings %} - {% if not listing.closed %} - - {% endif %} - {% endfor %} -
- {% else %} -
-
-
-
-

Seems to be no listings in this Auction!!

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

Active Listings

+ {% if Listings %} +
+ {% for listing in Listings %} + {% if not listing.closed %} + + {% endif %} + {% endfor %} +
+ {% else %} +
+
+
+
+

Seems to be no listings in this Auction!!

+
+ {% endif %} + {% endblock %} \ No newline at end of file diff --git a/auctions/templates/auctions/listing.html b/auctions/templates/auctions/listing.html index 4efb3b3..b9953ea 100644 --- a/auctions/templates/auctions/listing.html +++ b/auctions/templates/auctions/listing.html @@ -5,7 +5,7 @@

Listing : {{ Listing.title}}

- {% if user.username|stringformat:"s" == Listing.user|stringformat:"s" %} + {% if user.username|stringformat:"s" == Listing.user|stringformat:"s" and not Listing.closed %} Close this Listing {% endif %} diff --git a/db.sqlite3 b/db.sqlite3 index 3b1d6793e757471dab2cb0b2d78755107171235d..85f9d99159073f667a684ae109701a9d69c1d131 100644 GIT binary patch delta 2416 zcmb_dU2Icj7(QRm>F?U}uDa3-`8i_ZWIw0hIX(ZZkct=~Q7~4N7=vB+)55mS_0W!J z(oMsSApzY*BZ*&VT;KXFOsDsw1<*4K+Tx5hd5B%uKc`w}>5a z!vjkq^(Z!+jl8@ls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