Add state to wishlist items
This commit is contained in:
parent
6417a0445c
commit
86ea93545b
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue