showItem: *fix: BuyDeposit-button where there is no deposiyyy

This commit is contained in:
tkroenert 2011-10-28 22:09:19 +02:00
parent 7e608ae6af
commit 7da1e4875b
1 changed files with 2 additions and 0 deletions

View File

@ -19,6 +19,7 @@
<span><span>{{ item.price|floatformat:2 }}€</span></span> <span><span>{{ item.price|floatformat:2 }}€</span></span>
</a> </a>
{% if item.hasDeposit %}
<a class="button buy inclDeposit" href="/store/buy/{{ item.id }}/with/deposit/"> <a class="button buy inclDeposit" href="/store/buy/{{ item.id }}/with/deposit/">
<span><span>{{ item.price|floatformat:2 }}€ / {{ item.deposit|floatformat:2 }}€</span></span> <span><span>{{ item.price|floatformat:2 }}€ / {{ item.deposit|floatformat:2 }}€</span></span>
</a> </a>
@ -27,6 +28,7 @@
href="/store/buy/{{ item.id }}/only/deposit/"> href="/store/buy/{{ item.id }}/only/deposit/">
<span><span>{{ item.deposit|floatformat:2 }}€</span></span> <span><span>{{ item.deposit|floatformat:2 }}€</span></span>
</a> </a>
{% endif %}
</div> </div>
<h3>Beschreibung</h3> <h3>Beschreibung</h3>