Add state to wishlist items

This commit is contained in:
Chris Jean-Marie 2024-10-31 20:30:54 +00:00
parent 6417a0445c
commit 86ea93545b
2 changed files with 7 additions and 1 deletions

View File

@ -15,6 +15,7 @@
<thead>
<tr>
<th scope="col">Item</th>
<th scope="col">State</th>
<th scope="col">Action</th>
</tr>
</thead>
@ -22,6 +23,11 @@
{% for user_wishlist_item in user_wishlist_items %}
<tr>
<td><a href="{{ user_wishlist_item.item_url }}">{{ user_wishlist_item.item }}</a></td>
{% if user_wishlist_item.received_at > 0 %}
<td>Got it!</td>
{% else %}
<td>Not yet!</td>
{% endif %}
{% if my_wishlist %}
{% if user_wishlist_item.received_at > 0 %}
<td>Got it!</td>

View File

@ -1,7 +1,7 @@
{% extends "authorized.html" %}
{% block title %}Wish Lists{% endblock %}
{% block center %}
<h1>Users</h1>
<h1>Wishlists</h1>
<table class="table table-striped table-bordered">
<thead>
<tr>