From 66ac5c365191d7515f7f796e95a754f6882cda8e Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 5 Jul 2025 11:12:37 +0200 Subject: Code simplification --- src/templates/coins-mintages.html.tmpl | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'src/templates/coins-mintages.html.tmpl') diff --git a/src/templates/coins-mintages.html.tmpl b/src/templates/coins-mintages.html.tmpl index 772db33..1cf7c70 100644 --- a/src/templates/coins-mintages.html.tmpl +++ b/src/templates/coins-mintages.html.tmpl @@ -71,15 +71,17 @@ - {{ with $p := .Printer }} - {{ range denoms }} - - {{ end }} - {{ end }} + + + + + + + + {{ $p := .Printer }} - {{ $type := .Type }} {{ range .Mintages.Standard }} {{ $p := .Printer }} - {{ $type := .Type }} {{ range .Mintages.Commemorative }}
{{ .T "Year" }}{{ $p.M . }}{{ .M 0.01 }}{{ .M 0.02 }}{{ .M 0.05 }}{{ .M 0.10 }}{{ .M 0.20 }}{{ .M 0.50 }}{{ .M 1.00 }}{{ .M 2.00 }}
@@ -116,7 +118,6 @@
@@ -149,9 +150,9 @@ {{ end }} {{ define "coin-type-radio" }} -