From 9d09040fbfb169b55de4e1746a7e734cc3fcd5c7 Mon Sep 17 00:00:00 2001 From: Evan Chen Date: Mon, 4 Sep 2023 18:33:46 -0400 Subject: [PATCH] polish(markets): change present market end date --- markets/templates/markets/market_list.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/markets/templates/markets/market_list.html b/markets/templates/markets/market_list.html index 8cba8813..4c629cf1 100644 --- a/markets/templates/markets/market_list.html +++ b/markets/templates/markets/market_list.html @@ -34,10 +34,12 @@ {{ market.title }} {% endif %} - {% if past %} + {% if market.has_ended %} {{ market.end_date }} - {% else %} + {% elif market.is_upcoming %} {{ market.end_date|naturaltime }} + {% else %} + {{ market.end_date }} {% endif %} {% endfor %}