display gift status instead of "Purchased!"

pull/1/head
eric 2014-12-20 13:03:20 -05:00
parent b01562b630
commit 220d2871c1
4 changed files with 5 additions and 5 deletions

View File

@ -33,7 +33,7 @@
</div>
{% if purchased %}
<div class="unglued_white">
<b>Purchased!</b>
<b>{% if purchased.gifts.all.count %}A gift to you!{% else %}Purchased!{% endif %}</b>
</div>
{% else %}{% if borrowed %}
<b>Borrowed! </b>
@ -244,7 +244,7 @@
{% else %}
<div class="listview panelfront side1 on-wishlist">
{% if purchased %}
<span>Purchased!</span>
<span>{% if purchased.gifts.all.count %}A gift to you!{% else %}Purchased!{% endif %}</span>
{% else %}{% if borrowed %}
<span>Borrowed! ...until</span>
{% else %}{% if request.user.id in supporters %}

View File

@ -5,7 +5,7 @@
<div>
{% if form %}
<p> <a href="{% url supporter gift.giver %}">{{ gift.giver }}</a> has sent you "<a href="{% url work work.id %}">{{ work.title }}</a>" as a gift, however, it seems that you've already purchased this work at unglue.it. Not to worry, you can Re-Gift it!</p>
<p> <a href="{% url supporter gift.giver %}">{{ gift.giver }}</a> has sent you "<a href="{% url work work.id %}">{{ work.title }}</a>" as a gift, however, it seems that you already own this work at unglue.it. Not to worry, you can Re-Gift it!</p>
<div>
<form method="POST" action="#">

View File

@ -108,7 +108,7 @@
{% with work.last_campaign.individual_offer as offer %}
<li class="first">
{% if user_license.purchased %}
<span class="menu-item-desc">Individual license already purchased!</span>
<span class="menu-item-desc">Individual license already {% if user_license.purchased.gifts.all.count %}a gift to you!{% else %}purchased!{% endif %}</span>
{% else %}
<label for="offer_{{offer.id}}">
<input type="radio" name="offer_id" id="offer_{{offer.id}}" value="{{offer.id}}" {% if not give %}{% ifequal offer_id offer.id|stringformat:"s" %}checked="checked"{% endifequal %}{% endif %} />

View File

@ -639,7 +639,7 @@
<ul class="support menu">
{% if purchased %}
<li class="first no_link">
<span class="menu-item-desc">Purchased!</span>
<span class="menu-item-desc">{% if purchased.gifts.all.count %}A gift to you!{% else %}Purchased!{% endif %}</span>
</li>
{% else %}
<li class="first" itemprop="offers" itemscope itemtype="http://schema.org/Offer">