Skip to content

Commit

Permalink
Update listing.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekaterina-Vititneva committed Aug 11, 2024
1 parent 4e89920 commit 9057cc7
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions project_2/commerce/auctions/templates/auctions/listing.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@

<h2>Listing: {{ listing.title }}</h2>

{% if not listing.active %}
<div class="alert alert-danger">This listing is closed.</div>
{% if listing.last_modified_by == user %}
<div class="alert alert-success">Congratulations! You have won this auction.</div>
{% endif %}
{% endif %}

<div class="listing">
<div class="listing-top">
Expand Down Expand Up @@ -69,17 +75,6 @@ <h4 class="listing-bid">{{ listing.bid }}€</h4>
</div>
</div>
</div>
<div class="toast" role="alert" aria-live="assertive" aria-atomic="true">
<div class="toast-header">
<img src="..." class="rounded me-2" alt="...">
<strong class="me-auto">Bootstrap</strong>
<small>11 mins ago</small>
<button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close"></button>
</div>
<div class="toast-body">
Hello, world! This is a toast message.
</div>
</div>
<div class="listing-bottom">
<p class="listing-description-heading">Description</p>
<p class="listing-description">{{ listing.description }}</p>
Expand Down

0 comments on commit 9057cc7

Please sign in to comment.