From 4a1fe520e8aae6b220784ccfb34a6e7559e4cce7 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 21 Sep 2024 10:09:58 +0200 Subject: Implement /coins/mintages in Go templates --- src/templates/coins-mintages.html.tmpl | 143 +++++++++++++++++++++++++++++++++ 1 file changed, 143 insertions(+) create mode 100644 src/templates/coins-mintages.html.tmpl (limited to 'src/templates') diff --git a/src/templates/coins-mintages.html.tmpl b/src/templates/coins-mintages.html.tmpl new file mode 100644 index 0000000..646203a --- /dev/null +++ b/src/templates/coins-mintages.html.tmpl @@ -0,0 +1,143 @@ +{{ define "content" }} +
+ {{ template "navbar" . }} +

{{ .T "Euro Coin Mintages" }}

+
+
+

+ {{ .T "Here you’ll be able to view all the known mintages for all coins. You’ll also be able to filter on country, denomination, etc. If you have any mintage data that’s missing from our site, feel free to contact us." }} +

+
+ {{ if eq .Code "nl" }} +

{{ .T "Additional Notes" }}

+ + {{ end }} +
+
+
+ +
+ {{ template "coin-type-radio" + (tuple .Type "circ" (.T "Circulation Coins")) }} + {{ template "coin-type-radio" + (tuple .Type "nifc" (.T "NIFC / BU Sets")) }} + {{ template "coin-type-radio" + (tuple .Type "proof" (.T "Proof Coins")) }} +
+
+ +
+
+
{{ .T "Standard Issue Coins" }}
+ + + + {{ with $p := .Printer }} + {{ range denoms }} + + {{ end }} + {{ end }} + + + {{ $p := .Printer }} + {{ $type := .Type }} + {{ range .Mintages.Standard }} + + + {{ range (index .Mintages (strToCtype $type)) }} + {{ if eq . -1 }} + + {{ else if eq . 0 }} + + {{ else }} + + {{ end }} + + {{ end }} + + {{ end }} + +
{{ .T "Year" }}{{ $p.Money . false }}
+ {{- .Year -}} + {{- if ne .Mintmark "" -}} +  {{ .Mintmark }} + {{- end -}} + {{ $p.T "Unknown" }}{{ $p.N . }}
+
+ {{ if ne (len .Mintages.Commemorative) 0 }} +
+
{{ .T "Commemorative Coins" }}
+ + + + + + + + {{ $p := .Printer }} + {{ $type := .Type }} + {{ range .Mintages.Commemorative }} + + + + + {{ with (index .Mintage (strToCtype $type)) }} + {{ if eq . -1 }} + + {{ else if eq . 0 }} + + {{ else }} + + {{ end }} + {{ end }} + + {{ end }} + +
{{ .T "Year" }}{{ .T "Commemorated Issue" }}{{ .T "Mintage" }}
+ {{- .Year -}} + {{- if ne .Mintmark "" -}} +  {{ .Mintmark }} + {{- end -}} + {{ .Name }}{{ $p.T "Unknown" }}{{ $p.N . }}
+
+ {{ end }} +
+
+{{ end }} + +{{ define "coin-type-radio" }} + +{{ end }} -- cgit v1.2.3