From 7532e989fb22a646877d880b99a70c6357f90c3c Mon Sep 17 00:00:00 2001 From: lalanza808 Date: Mon, 13 Jan 2020 09:10:44 -0800 Subject: [PATCH] add marks for if items are available --- web/templates/items/list_items.html | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/web/templates/items/list_items.html b/web/templates/items/list_items.html index d31c6f3..9b0b4dc 100644 --- a/web/templates/items/list_items.html +++ b/web/templates/items/list_items.html @@ -27,17 +27,25 @@ - + + {% for item in items %} - + + {% endfor %}
IDWhereaboutsAvailable Name List DateWhereabouts Asking Price (XMR)
#{{ item.id }}{{ item.whereabouts }} + {% if item.available %} + + {% else %} + + {% endif %} + {{ item.name }} {{ item.list_date | date:"d M, Y H:i:s" }}{{ item.whereabouts }} {{ item.ask_price_xmr }}