diff --git a/project_2/commerce/auctions/templates/auctions/categories.html b/project_2/commerce/auctions/templates/auctions/categories.html new file mode 100644 index 0000000..8d29efd --- /dev/null +++ b/project_2/commerce/auctions/templates/auctions/categories.html @@ -0,0 +1,28 @@ +{% extends "auctions/layout.html" %} + +{% block body %} +

Active Listings

+ + +
+ {% for listing in listings %} + +
+ {% if listing.imageURL %} + listing image + {% else %} +
+ {% endif %} +
+
{{ listing.title }}
+
Price: {{ listing.bid }}€
+

{{ listing.description }}

+
+ +
+
+ {% endfor %} +
+{% endblock %} \ No newline at end of file diff --git a/project_2/commerce/auctions/templates/auctions/layout.html b/project_2/commerce/auctions/templates/auctions/layout.html index 98f3e51..2aa6c21 100644 --- a/project_2/commerce/auctions/templates/auctions/layout.html +++ b/project_2/commerce/auctions/templates/auctions/layout.html @@ -21,14 +21,14 @@

Auctions

Active Listings {% if user.is_authenticated %}