From 986f171167e7b21ffd3ee0c0ec6a8506f0741462 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 12 Aug 2024 23:57:38 +0200 Subject: Make more changes to the mintages --- template/coins_mintages.templ | 45 +++++++++++++++++++++++++++++++++---------- 1 file changed, 35 insertions(+), 10 deletions(-) (limited to 'template') diff --git a/template/coins_mintages.templ b/template/coins_mintages.templ index 3446644..894cb75 100644 --- a/template/coins_mintages.templ +++ b/template/coins_mintages.templ @@ -100,16 +100,41 @@ templ CoinsMintages() { -
-
{ p.T("Commemorative Coins") }
- - - - - - -
{ p.T("Year") }{ p.T("Commemorated Issue") }{ p.T("Mintage") }
-
+ if len(data.Commemorative) != 0 { +
+
{ p.T("Commemorative Coins") }
+ + + + + + + + for _, row := range data.Commemorative { + + + + + switch row.Mintage[strToCtype(ctype)] { + case mintage.Unknown: + + case 0: + + default: + + } + + } + +
{ p.T("Year") }{ p.T("Commemorated Issue") }{ p.T("Mintage") }
+ if len(row.Mintmark) != 0 { + { strconv.Itoa(row.Year) } { row.Mintmark } + } else { + { strconv.Itoa(row.Year) } + } + { row.Name }{ p.T("Unknown") }{ p.N(row.Mintage[strToCtype(ctype)]) }
+
+ } } -- cgit v1.2.3