do not show not existing coins

This commit is contained in:
willipink 2021-07-26 13:08:34 +00:00
parent 25f0184d76
commit 505198121a

View File

@ -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 }} &euro; {{ 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 }} &euro; {{ 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>