From 220d2871c161805d4f2d052c7d19e7b8bb83b783 Mon Sep 17 00:00:00 2001 From: eric Date: Sat, 20 Dec 2014 13:03:20 -0500 Subject: [PATCH] display gift status instead of "Purchased!" --- frontend/templates/book_panel.html | 4 ++-- frontend/templates/gift_duplicate.html | 2 +- frontend/templates/purchase.html | 2 +- frontend/templates/work.html | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/templates/book_panel.html b/frontend/templates/book_panel.html index 7dcfc7e6..1afd2588 100644 --- a/frontend/templates/book_panel.html +++ b/frontend/templates/book_panel.html @@ -33,7 +33,7 @@ {% if purchased %}
- Purchased! + {% if purchased.gifts.all.count %}A gift to you!{% else %}Purchased!{% endif %}
{% else %}{% if borrowed %} Borrowed! @@ -244,7 +244,7 @@ {% else %}
{% if purchased %} - Purchased! + {% if purchased.gifts.all.count %}A gift to you!{% else %}Purchased!{% endif %} {% else %}{% if borrowed %} Borrowed! ...until {% else %}{% if request.user.id in supporters %} diff --git a/frontend/templates/gift_duplicate.html b/frontend/templates/gift_duplicate.html index 2e18bb11..c8966ebb 100644 --- a/frontend/templates/gift_duplicate.html +++ b/frontend/templates/gift_duplicate.html @@ -5,7 +5,7 @@
{% if form %} -

{{ gift.giver }} has sent you "{{ work.title }}" as a gift, however, it seems that you've already purchased this work at unglue.it. Not to worry, you can Re-Gift it!

+

{{ gift.giver }} has sent you "{{ work.title }}" as a gift, however, it seems that you already own this work at unglue.it. Not to worry, you can Re-Gift it!

diff --git a/frontend/templates/purchase.html b/frontend/templates/purchase.html index 23b579f9..7e5efc0a 100644 --- a/frontend/templates/purchase.html +++ b/frontend/templates/purchase.html @@ -108,7 +108,7 @@ {% with work.last_campaign.individual_offer as offer %}
  • {% if user_license.purchased %} - Individual license already purchased! + Individual license already {% if user_license.purchased.gifts.all.count %}a gift to you!{% else %}purchased!{% endif %} {% else %}