Skip to content

Commit

Permalink
polish(markets): change present market end date
Browse files Browse the repository at this point in the history
  • Loading branch information
vEnhance committed Sep 4, 2023
1 parent d95abf1 commit 9d09040
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions markets/templates/markets/market_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,12 @@
<a href="{{ market.get_absolute_url }}">{{ market.title }}</a>
</td>
{% endif %}
{% if past %}
{% if market.has_ended %}
<td>{{ market.end_date }}</td>
{% else %}
{% elif market.is_upcoming %}
<td>{{ market.end_date|naturaltime }}</td>
{% else %}
<td>{{ market.end_date }}</td>
{% endif %}
</tr>
{% endfor %}
Expand Down

0 comments on commit 9d09040

Please sign in to comment.