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.tmpl8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/templates/coins-mintages.html.tmpl b/src/templates/coins-mintages.html.tmpl
index 8c60248..772db33 100644
--- a/src/templates/coins-mintages.html.tmpl
+++ b/src/templates/coins-mintages.html.tmpl
@@ -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 }}