diff options
author | Thomas Voss <mail@thomasvoss.com> | 2025-07-05 11:12:37 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2025-07-05 11:12:37 +0200 |
commit | 66ac5c365191d7515f7f796e95a754f6882cda8e (patch) | |
tree | 99de370773a33d21a6f8bf13c72b842ec0e782a6 /src/templates/coins-mintages.html.tmpl | |
parent | 5a12e3e229e112e6b316c9ee9f762e36f321271d (diff) |
Code simplification
Diffstat (limited to 'src/templates/coins-mintages.html.tmpl')
-rw-r--r-- | src/templates/coins-mintages.html.tmpl | 19 |
1 files changed, 10 insertions, 9 deletions
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 @@ <table class="mintage-table" role="grid"> <thead> <th>{{ .T "Year" }}</th> - {{ with $p := .Printer }} - {{ range denoms }} - <th>{{ $p.M . }}</th> - {{ end }} - {{ end }} + <th>{{ .M 0.01 }}</th> + <th>{{ .M 0.02 }}</th> + <th>{{ .M 0.05 }}</th> + <th>{{ .M 0.10 }}</th> + <th>{{ .M 0.20 }}</th> + <th>{{ .M 0.50 }}</th> + <th>{{ .M 1.00 }}</th> + <th>{{ .M 2.00 }}</th> </thead> <tbody> {{ $p := .Printer }} - {{ $type := .Type }} {{ range .Mintages.Standard }} <tr> <th scope="col"> @@ -116,7 +118,6 @@ </thead> <tbody> {{ $p := .Printer }} - {{ $type := .Type }} {{ range .Mintages.Commemorative }} <tr> <th scope="col"> @@ -149,9 +150,9 @@ {{ end }} {{ define "coin-type-radio" }} -<label for=compact-{{ index . 1 }}> +<label for={{ index . 1 }}> <input - id=compact-{{ index . 1 }} + id={{ index . 1 }} name="type" type="radio" value={{ index . 1 }} |