do not show not existing coins
This commit is contained in:
parent
25f0184d76
commit
505198121a
@ -4,7 +4,9 @@
|
|||||||
{% include 'coinc/filter_country.html' with countrys=countrys %}
|
{% include 'coinc/filter_country.html' with countrys=countrys %}
|
||||||
<p><h5>Zuletzt gefunden</h5></p>
|
<p><h5>Zuletzt gefunden</h5></p>
|
||||||
{% for coin in recent_coins %}
|
{% for coin in recent_coins %}
|
||||||
|
{% if coin.exists %}
|
||||||
<p>{{ coin.found_on|date:"d.m.Y" }}: {{ coin.value|floatformat:2 }} € {{ coin.year }}{% if coin.stamp %}-{{ coin.stamp }}{% endif %}{% if coin.name %} "{{ coin.name }}"{% endif %} aus {{ coin.country}} von {{ coin.found_by }}</p>
|
<p>{{ coin.found_on|date:"d.m.Y" }}: {{ coin.value|floatformat:2 }} € {{ coin.year }}{% if coin.stamp %}-{{ coin.stamp }}{% endif %}{% if coin.name %} "{{ coin.name }}"{% endif %} aus {{ coin.country}} von {{ coin.found_by }}</p>
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<p>Trage zuerst Länder im Adminbereich ein.</p>
|
<p>Trage zuerst Länder im Adminbereich ein.</p>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user