summaryrefslogtreecommitdiffhomepage
path: root/src/templates/coins-mintages.html.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'src/templates/coins-mintages.html.tmpl')
-rw-r--r--src/templates/coins-mintages.html.tmpl12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/templates/coins-mintages.html.tmpl b/src/templates/coins-mintages.html.tmpl
index 4ac29e8..772db33 100644
--- a/src/templates/coins-mintages.html.tmpl
+++ b/src/templates/coins-mintages.html.tmpl
@@ -73,7 +73,7 @@
<th>{{ .T "Year" }}</th>
{{ with $p := .Printer }}
{{ range denoms }}
- <th>{{ $p.M . false }}</th>
+ <th>{{ $p.M . }}</th>
{{ end }}
{{ end }}
</thead>
@@ -88,9 +88,11 @@
&nbsp;<sub><small>{{ .Mintmark }}</small></sub>
{{- end -}}
</th>
- {{ range (index .Mintages (strToCtype $type)) }}
+ {{ range .Mintages }}
{{ if eq . -1 }}
<td>{{ $p.T "Unknown" }}</td>
+ {{ else if eq . -2 }}
+ <td class="error">{{ $p.T "Error" }}</td>
{{ else if eq . 0 }}
<td>—</td>
{{ else }}
@@ -125,9 +127,11 @@
</th>
<!-- TODO: Translate commemorative names -->
<td>{{ .Name }}</td>
- {{ with (index .Mintage (strToCtype $type)) }}
+ {{ with .Mintage }}
{{ if eq . -1 }}
<td>{{ $p.T "Unknown" }}</td>
+ {{ else if eq . -2 }}
+ <td class="error">{{ $p.T "Error" }}</td>
{{ else if eq . 0 }}
<td>—</td>
{{ else }}
@@ -157,4 +161,4 @@
/>
{{ index . 2 }}
</label>
-{{ end }}
+{{ end }} \ No newline at end of file