From 505198121a66c5072c8b86aaaf3e224b798808d7 Mon Sep 17 00:00:00 2001
From: willipink
Date: Mon, 26 Jul 2021 13:08:34 +0000
Subject: [PATCH] do not show not existing coins
---
coinmanager/coinc/templates/coinc/index.html | 2 ++
1 file changed, 2 insertions(+)
diff --git a/coinmanager/coinc/templates/coinc/index.html b/coinmanager/coinc/templates/coinc/index.html
index 2b96b53..b79e966 100644
--- a/coinmanager/coinc/templates/coinc/index.html
+++ b/coinmanager/coinc/templates/coinc/index.html
@@ -4,7 +4,9 @@
{% include 'coinc/filter_country.html' with countrys=countrys %}
Zuletzt gefunden
{% for coin in recent_coins %}
+ {% if coin.exists %}
{{ 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 }}
+ {% endif %}
{% endfor %}
{% else %}
Trage zuerst Länder im Adminbereich ein.