From 2c726e551d90d20bcd2d78545c369864cc9038e5 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 6 Jun 2025 01:32:41 +0200 Subject: Use CSV’s for mintages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/templates/coins-mintages.html.tmpl | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'src/templates') diff --git a/src/templates/coins-mintages.html.tmpl b/src/templates/coins-mintages.html.tmpl index 8c60248..8554c3f 100644 --- a/src/templates/coins-mintages.html.tmpl +++ b/src/templates/coins-mintages.html.tmpl @@ -66,6 +66,7 @@ + {{ $data := (index .Mintages (strToCtype .Type)) }}
{{ .T "Standard Issue Coins" }}
@@ -80,7 +81,7 @@ {{ $p := .Printer }} {{ $type := .Type }} - {{ range .Mintages.Standard }} + {{ range $data.Standard }} - {{ range (index .Mintages (strToCtype $type)) }} + {{ range .Mintages }} {{ if eq . -1 }} + {{ else if eq . -2 }} + {{ else if eq . 0 }} {{ else }} @@ -103,7 +106,7 @@
{{- .Year -}} @@ -88,9 +89,11 @@  {{ .Mintmark }} {{- end -}} {{ $p.T "Unknown" }}{{ $p.T "Error" }}
- {{ if ne (len .Mintages.Commemorative) 0 }} + {{ if ne (len $data.Commemorative) 0 }}
{{ .T "Commemorative Coins" }}
@@ -115,7 +118,7 @@ {{ $p := .Printer }} {{ $type := .Type }} - {{ range .Mintages.Commemorative }} + {{ range $data.Commemorative }} - {{ with (index .Mintage (strToCtype $type)) }} + {{ with .Mintage }} {{ if eq . -1 }} + {{ else if eq . -2 }} + {{ else if eq . 0 }} {{ else }} -- cgit v1.2.3
{{- .Year -}} @@ -125,9 +128,11 @@ {{ .Name }}{{ $p.T "Unknown" }}{{ $p.T "Error" }}