display gift status instead of "Purchased!"
parent
b01562b630
commit
220d2871c1
|
@ -33,7 +33,7 @@
|
||||||
</div>
|
</div>
|
||||||
{% if purchased %}
|
{% if purchased %}
|
||||||
<div class="unglued_white">
|
<div class="unglued_white">
|
||||||
<b>Purchased!</b>
|
<b>{% if purchased.gifts.all.count %}A gift to you!{% else %}Purchased!{% endif %}</b>
|
||||||
</div>
|
</div>
|
||||||
{% else %}{% if borrowed %}
|
{% else %}{% if borrowed %}
|
||||||
<b>Borrowed! </b>
|
<b>Borrowed! </b>
|
||||||
|
@ -244,7 +244,7 @@
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="listview panelfront side1 on-wishlist">
|
<div class="listview panelfront side1 on-wishlist">
|
||||||
{% if purchased %}
|
{% if purchased %}
|
||||||
<span>Purchased!</span>
|
<span>{% if purchased.gifts.all.count %}A gift to you!{% else %}Purchased!{% endif %}</span>
|
||||||
{% else %}{% if borrowed %}
|
{% else %}{% if borrowed %}
|
||||||
<span>Borrowed! ...until</span>
|
<span>Borrowed! ...until</span>
|
||||||
{% else %}{% if request.user.id in supporters %}
|
{% else %}{% if request.user.id in supporters %}
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<div>
|
<div>
|
||||||
|
|
||||||
{% if form %}
|
{% 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>
|
<div>
|
||||||
<form method="POST" action="#">
|
<form method="POST" action="#">
|
||||||
|
|
|
@ -108,7 +108,7 @@
|
||||||
{% with work.last_campaign.individual_offer as offer %}
|
{% with work.last_campaign.individual_offer as offer %}
|
||||||
<li class="first">
|
<li class="first">
|
||||||
{% if user_license.purchased %}
|
{% 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 %}
|
{% else %}
|
||||||
<label for="offer_{{offer.id}}">
|
<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 %} />
|
<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 %} />
|
||||||
|
|
|
@ -639,7 +639,7 @@
|
||||||
<ul class="support menu">
|
<ul class="support menu">
|
||||||
{% if purchased %}
|
{% if purchased %}
|
||||||
<li class="first no_link">
|
<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>
|
</li>
|
||||||
{% else %}
|
{% else %}
|
||||||
<li class="first" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
|
<li class="first" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
|
||||||
|
|
Loading…
Reference in New Issue