summaryrefslogtreecommitdiffhomepage
path: root/src/templates
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2025-06-09 02:51:27 +0200
committerThomas Voss <mail@thomasvoss.com> 2025-06-09 02:51:27 +0200
commit52db1d03e5067de4ba77c3a12465149d268eb3d1 (patch)
tree96286b94957e2546a789cbdcad2677b6f03b0973 /src/templates
parent09defec0a015e7ddb118bd453ea2925a5cb9d5dc (diff)
Begin migration towards SQLite
Diffstat (limited to 'src/templates')
-rw-r--r--src/templates/coins-mintages.html.tmpl7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/templates/coins-mintages.html.tmpl b/src/templates/coins-mintages.html.tmpl
index 8554c3f..772db33 100644
--- a/src/templates/coins-mintages.html.tmpl
+++ b/src/templates/coins-mintages.html.tmpl
@@ -66,7 +66,6 @@
</div>
<button type="submit">{{ .T "Filter" }}</button>
</form>
- {{ $data := (index .Mintages (strToCtype .Type)) }}
<figure>
<figcaption>{{ .T "Standard Issue Coins" }}</figcaption>
<table class="mintage-table" role="grid">
@@ -81,7 +80,7 @@
<tbody>
{{ $p := .Printer }}
{{ $type := .Type }}
- {{ range $data.Standard }}
+ {{ range .Mintages.Standard }}
<tr>
<th scope="col">
{{- .Year -}}
@@ -106,7 +105,7 @@
</tbody>
</table>
</figure>
- {{ if ne (len $data.Commemorative) 0 }}
+ {{ if ne (len .Mintages.Commemorative) 0 }}
<figure>
<figcaption>{{ .T "Commemorative Coins" }}</figcaption>
<table class="mintage-table-cc" role="grid">
@@ -118,7 +117,7 @@
<tbody>
{{ $p := .Printer }}
{{ $type := .Type }}
- {{ range $data.Commemorative }}
+ {{ range .Mintages.Commemorative }}
<tr>
<th scope="col">
{{- .Year -}}