Skip to content

Commit

Permalink
Added listing category preview
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekaterina-Vititneva committed Sep 15, 2024
1 parent 40aa67e commit 580a0f1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion project_2/commerce/auctions/templates/auctions/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,14 @@ <h5 class="card-title">{{ listing.title }}</h5>
<div class="card-price">
<p class="card-subtitle-bold">Price: {{ listing.bid }}€</p>
<div class="card-statuse">
<span class="badge text-bg-success">{{ listing.category }}</span>
<!-- Active listing statuse
{%if listing.active%}
<span class="badge text-bg-success">Active</span>
{% else %}
<span class="badge text-bg-danger">Closed</span>
{% endif %}
{% endif %} -->

</div>
</div>
<p class="card-text">{{ listing.description }}</p>
Expand Down

0 comments on commit 580a0f1

Please sign in to comment.