diff options
Diffstat (limited to 'src/templates')
-rw-r--r-- | src/templates/-404.html.tmpl | 2 | ||||
-rw-r--r-- | src/templates/-error.html.tmpl | 4 | ||||
-rw-r--r-- | src/templates/coins-designs-ad.html.tmpl | 4 | ||||
-rw-r--r-- | src/templates/coins-designs-de.html.tmpl | 82 | ||||
-rw-r--r-- | src/templates/coins-designs-hr.html.tmpl | 8 | ||||
-rw-r--r-- | src/templates/coins-designs-nl.html.tmpl | 4 | ||||
-rw-r--r-- | src/templates/coins-mintages.html.tmpl | 87 |
7 files changed, 98 insertions, 93 deletions
diff --git a/src/templates/-404.html.tmpl b/src/templates/-404.html.tmpl index 06ac02b..03602e1 100644 --- a/src/templates/-404.html.tmpl +++ b/src/templates/-404.html.tmpl @@ -5,7 +5,7 @@ </header> <main> <p> - {{ .Get "The page you were looking for does not exist. If you believe this is a mistake then don’t hesitate to contact ‘@onetruemangoman’ on Discord or email us at %(Email:e)." + {{ .Get "The page you were looking for does not exist. If you believe this is a mistake then don’t hesitate to contact ‘@onetruemangoman’ on Discord or email us at {Email:e}." (map "Email" "mail@euro-cash.eu") }} </p> </main> diff --git a/src/templates/-error.html.tmpl b/src/templates/-error.html.tmpl index 5b8258b..a18ec3e 100644 --- a/src/templates/-error.html.tmpl +++ b/src/templates/-error.html.tmpl @@ -8,8 +8,8 @@ {{ .Get "If you’re seeing this page, it means that something went wrong on our end that we need to fix. Our team has been notified of this error, and we apologise for the inconvenience." }} </p> <p> - {{ .Get "If this issue persists, don’t hesitate to contact ‘@onetruemangoman’ on Discord or to email us at %(Email:e)" - (map "Email" "mail@euro-cash.eu") }} + {{ .Get "If this issue persists, don’t hesitate to contact ‘@onetruemangoman’ on Discord or to email us at {Email:e}" + (map "Email" "mail@euro-cash.eu") }} </p> </main> {{ end }}
\ No newline at end of file diff --git a/src/templates/coins-designs-ad.html.tmpl b/src/templates/coins-designs-ad.html.tmpl index ab27555..d63110c 100644 --- a/src/templates/coins-designs-ad.html.tmpl +++ b/src/templates/coins-designs-ad.html.tmpl @@ -44,8 +44,8 @@ <li>{{ .Get "The arms of Catalonia" }}</li> <li>{{ .Get "The arms of the Viscounts of Béarn" }}</li> </ul> - {{ .Get "The bottom of the coat of arms has the motto ‘{LatinStart:r}VIRTVS VNITA FORTIOR{LatinEnd:r}’ (English: ‘UNITED VIRTUE IS STRONGER’)." - (map "LatinStart" `<span lang="la"><em>` "LatinEnd" `</em></span>`) }} + {{ .Get "The bottom of the coat of arms has the motto ‘{LatinStart:r}VIRTVS VNITA FORTIOR{LatinEnd:E}’ (English: ‘UNITED VIRTUE IS STRONGER’)." + (map "LatinStart" `<span lang="la"><em>` "LatinEnd" "em,span") }} </p> </main> {{ end }}
\ No newline at end of file diff --git a/src/templates/coins-designs-de.html.tmpl b/src/templates/coins-designs-de.html.tmpl index 5818491..995752f 100644 --- a/src/templates/coins-designs-de.html.tmpl +++ b/src/templates/coins-designs-de.html.tmpl @@ -1,39 +1,63 @@ {{ define "content" }} <header> {{ template "navbar" . }} - <h1>{{ .Get "German Euro Coin Designs" }}</h1> + <h1>{{ .Get "German Euro Coin Designs" }}</h1> </header> <main> - <p> - {{ .Get "The German euro coins feature three different designs. A unique feature of German euro coins are the mint marks on each coin. German has five active mints today: Berlin (A), Munich (D), Stuttgart (F), Karlsruhe (G), and Hamburg (J)." }} - </p> - <p> - {{ .Get "The bronze coins display an oak twig which is similar to the one found on the old Pfennig coins from the D-Mark era. The mint mark is located on the left hand side of the stem of the oak twig." }} - </p> - <div class="design-container"> - <img - alt="{{ .Get `German €0.01 coin` }}" - src="/designs/de-001.avif" - > - </div> + {{ $deargs := (map "GermanStart" `<span lang="de"><em>` "GermanEnd" "em,span") }} + + <div class="design-container"> + <img alt="{{ .Get `German €0.01 coin` }}" src="/designs/de-001.avif"> + <img alt="{{ .Get `German €0.10 coin` }}" src="/designs/de-010.avif"> + <img alt="{{ .Get `German €1 coin` }}" src="/designs/de-100.avif"> + </div> + <p> + {{ .Get "The German euro coins feature three different designs. A unique feature of German euro coins are the mint marks on each coin that denote in which city a given coin was minted. Germany has five active mints that produce Euro coins, which are denoted in the table below." }} + </p> + + <table> + <thead> + <tr> + <th>{{ .Get "City" }}</th> + <th>{{ .Get "Mintmark" }}</th> + </tr> + </thead> + <tbody> + <tr> + <td>{{ .Get "Berlin" }}</td> + <td>A</td> + </tr> + <tr> + <td>{{ .Get "Munich" }}</td> + <td>D</td> + </tr> + <tr> + <td>{{ .Get "Stuttgart" }}</td> + <td>F</td> + </tr> + <tr> + <td>{{ .Get "Karlsruhe" }}</td> + <td>G</td> + </tr> + <tr> + <td>{{ .Get "Hamburg" }}</td> + <td>J</td> + </tr> + </tbody> + </table> + <p> - {{ .Get "The bronze coins feature the Brandenburg Gate, a symbol of Berlin and Germany as a whole as it is inextricably linked with German division and subsequent reunification. The mint mark is located below the year." }} + {{ .Get "The bronze coins display an oak twig which is similar to the one found on the former Pfennig coins from the German Mark. The mint mark and year are located on the left- and right-hand sides of the stem." }} </p> - <div class="design-container"> - <img - alt="{{ .Get `German €0.10 coin` }}" - src="/designs/de-010.avif" - > - </div> <p> - {{ .Get "The bimetallic coins feature the German eagle. The eagle is a common motif in German heraldry and represents strength and freedom. The mint mark is located to the right of the year." }} + {{ .Get "The gold coins feature the Brandenburg Gate, a symbol of Berlin and Germany as a whole, but also a symbol of German division and unity. The mint mark is located below the year." }} + </p> + <p> + {{ .Get "The bimetallic coins feature an interpretation of the German Federal Eagle (German: ‘{GermanStart:r}Bundesadler{GermanEnd:E}’). The eagle is a common motif in German heraldry — including in the German coat of arms — and represents strength and freedom. The mint mark is located to the right of the year." $deargs }} + </p> + <p> + <!-- TODO: Get a picture of the edge-inscription --> + {{ .Get "The €2 coin also features an edge-inscription of Germany’s national motto and incipit of Germany’s national anthem. It reads ‘{GermanStart:r}EINIGKEIT UND RECHT UND FREIHEIT{GermanEnd:E}’ (English: ‘UNITY AND JUSTICE AND FREEDOM’)." $deargs }} </p> - <div class="design-container"> - <img - alt="{{ .Get `German €1 coin` }}" - src="/designs/de-100.avif" - > - </div> </main> -{{ end }} - +{{ end }}
\ No newline at end of file diff --git a/src/templates/coins-designs-hr.html.tmpl b/src/templates/coins-designs-hr.html.tmpl index 3c8fae5..9f98a9b 100644 --- a/src/templates/coins-designs-hr.html.tmpl +++ b/src/templates/coins-designs-hr.html.tmpl @@ -4,7 +4,7 @@ <h1>{{ .Get "Croatian Euro Coin Designs" }}</h1> </header> <main> - {{ $hrargs := (map "CroatianStart" `<span lang="hr"><em>` "CroatianEnd" `</em></span>`) }} + {{ $hrargs := (map "CroatianStart" `<span lang="hr"><em>` "CroatianEnd" "em,span") }} <div class="design-container"> <img alt="{{ .Get `Croatian €0.01 coin` }}" src="/designs/hr-001.avif" /> <img alt="{{ .Get `Croatian €0.50 coin` }}" src="/designs/hr-050.avif" /> @@ -14,7 +14,7 @@ <img alt="{{ .Get `Croatian €2 coin` }}" src="/designs/hr-200.avif" /> </div> <p> - {{ .Get "The Croatian euro coins feature four different themes, with each design featuring the Croatian checkerboard and the country’s name in Croatian (‘{CroatianStart:r}HRVATSKA{CroatianEnd:r}’). All designs were selected after voting in a public design competition." + {{ .Get "The Croatian euro coins feature four different themes, with each design featuring the Croatian checkerboard and the country’s name in Croatian (‘{CroatianStart:r}HRVATSKA{CroatianEnd:E}’). All designs were selected after voting in a public design competition." $hrargs }} </p> <p> @@ -26,12 +26,12 @@ (map "Link" "https://www.wikipedia.org/wiki/Nikola_Tesla") }} </p> <p> - {{ .Get "The 1 euro coin was designed by Jagor Šunde, David Čemeljić and Fran Zekan and features a marten. The marten is the semi-official national animal of Croatia and the Kuna — their pre-Euro currency — was named after the marten (‘{CroatianStart:r}kuna zlatica{CroatianEnd:r}’ in Croatian)." + {{ .Get "The 1 euro coin was designed by Jagor Šunde, David Čemeljić and Fran Zekan and features a marten. The marten is the semi-official national animal of Croatia and the Kuna — their pre-Euro currency — was named after the marten (‘{CroatianStart:r}kuna zlatica{CroatianEnd:E}’ in Croatian)." $hrargs }} </p> <p> <!-- TODO: Include a photo of the edge inscription --> - {{ .Get "The 2 euro coin was designed by Ivan Šivak and features the map of Croatia. The coin also has an edge-inscription that reads ‘{CroatianStart:r}O LIJEPA O DRAGA O SLATKA SLOBODO{CroatianEnd:r}’ (English: ‘OH BEAUTIFUL, OH DEAR, OH SWEET FREEDOM’) which is a line from the play {Link:L}Dubravka{-:E} by Ivan Gundulić." + {{ .Get "The 2 euro coin was designed by Ivan Šivak and features the map of Croatia. The coin also has an edge-inscription that reads ‘{CroatianStart:r}O LIJEPA O DRAGA O SLATKA SLOBODO{CroatianEnd:E}’ (English: ‘OH BEAUTIFUL, OH DEAR, OH SWEET FREEDOM’) which is a line from the play {Link:L}Dubravka{-:E} by Ivan Gundulić." $hrargs (map "Link" "https://www.wikipedia.org/wiki/Dubravka_(drama)") }} </p> </main> diff --git a/src/templates/coins-designs-nl.html.tmpl b/src/templates/coins-designs-nl.html.tmpl index c99d308..e98e77b 100644 --- a/src/templates/coins-designs-nl.html.tmpl +++ b/src/templates/coins-designs-nl.html.tmpl @@ -4,7 +4,7 @@ <h1>{{ .Get "Dutch Euro Coin Designs" }}</h1> </header> <main> - {{ $nlargs := (map "DutchStart" `<span lang="nl"><em>` "DutchEnd" `</em></span>`) }} + {{ $nlargs := (map "DutchStart" `<span lang="nl"><em>` "DutchEnd" "em,span") }} <div class="design-container"> <img alt="Dutch €0.50 coin (Queen Beatrix)" @@ -30,7 +30,7 @@ </p> <p> <!-- TODO: Get a picture of the edge-inscription --> - {{ .Get "Coins featuring both monarchs contain text reading ‘{DutchStart:r}BEATRIX KONINGIN DER NEDERLANDEN{DutchEnd:r}’ (English: ‘BEATRIX QUEEN OF THE NETHERLANDS’) and ‘{DutchStart:r}Willem-Alexander Koning der Nederlanden{DutchEnd:r}’ (English: ‘Willem-Alexander King of the Netherlands’) respectively. The €2 coins also feature an edge-inscription reading ‘{DutchStart:r}GOD ⋆ ZIJ ⋆ MET ⋆ ONS ⋆{DutchEnd:r}’ (English: ‘GOD ⋆ IS ⋆ WITH ⋆ US ⋆’)." + {{ .Get "Coins featuring both monarchs contain text reading ‘{DutchStart:r}BEATRIX KONINGIN DER NEDERLANDEN{DutchEnd:E}’ (English: ‘BEATRIX QUEEN OF THE NETHERLANDS’) and ‘{DutchStart:r}Willem-Alexander Koning der Nederlanden{DutchEnd:E}’ (English: ‘Willem-Alexander King of the Netherlands’) respectively. The €2 coins also feature an edge-inscription reading ‘{DutchStart:r}GOD ⋆ ZIJ ⋆ MET ⋆ ONS ⋆{DutchEnd:E}’ (English: ‘GOD ⋆ IS ⋆ WITH ⋆ US ⋆’)." $nlargs }} </p> <p> diff --git a/src/templates/coins-mintages.html.tmpl b/src/templates/coins-mintages.html.tmpl index 1cf7c70..8df0868 100644 --- a/src/templates/coins-mintages.html.tmpl +++ b/src/templates/coins-mintages.html.tmpl @@ -1,38 +1,19 @@ {{ define "content" }} <header> {{ template "navbar" . }} - <h1>{{ .T "Euro Coin Mintages" }}</h1> + <h1>{{ .Get "Euro Coin Mintages" }}</h1> </header> <main> <p> - {{ .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. - ` }} + {{ .Get "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." }} </p> <hr /> {{ if eq .Code "nl" }} - <h2>{{ .T "Additional Notes" }}</h2> + <h2>{{ .Get "Additional Notes" }}</h2> <ul> <li> - {{ .T ` - Most coins from the years 2003–2016 are listed as NIFC coins - while other popular sources such as Numista claim they were - minted for circulation. For more information on why others are - wrong, %sclick here%s.` - `<a href="#TODO">` `</a>` | safe - }} - </li> - <li> - {{ .T ` - In 2003 Numista calculated a total of %d coins issued for coin - sets per denomination. Our own calculations found only - %d. Numista also forgot to include the many hundred thousand - coins from the coin roll sets that were produced.` - 217503 177003 - }} + {{ .Get "Most coins from the years 2003–2016 are listed as NIFC coins while other popular sources such as Numista claim they were minted for circulation. For more information on why others are wrong, {Link:l}click here{-:E}." + (map "Link" "#TODO") }} </li> </ul> {{ end }} @@ -40,12 +21,12 @@ <form> <div class="grid"> <label for="country-dd"> - {{ .T "Country" }} + {{ .Get "Country" }} <select id="country-dd" name="code"> {{ $code := .Code }} {{ range .Countries }} <option - value={{ .Code }} + value="{{ .Code }}" {{ if eq .Code $code }} selected {{ end }} @@ -57,28 +38,28 @@ </label> <fieldset> {{ template "coin-type-radio" - (tuple .Type "circ" (.T "Circulation Coins")) }} + (tuple .Type "circ" (.Get "Circulation Coins")) }} {{ template "coin-type-radio" - (tuple .Type "nifc" (.T "NIFC / BU Sets")) }} + (tuple .Type "nifc" (.Get "NIFC / BU Sets")) }} {{ template "coin-type-radio" - (tuple .Type "proof" (.T "Proof Coins")) }} + (tuple .Type "proof" (.Get "Proof Coins")) }} </fieldset> </div> - <button type="submit">{{ .T "Filter" }}</button> + <button type="submit">{{ .Get "Filter" }}</button> </form> <figure> - <figcaption>{{ .T "Standard Issue Coins" }}</figcaption> + <figcaption>{{ .Get "Standard Issue Coins" }}</figcaption> <table class="mintage-table" role="grid"> <thead> - <th>{{ .T "Year" }}</th> - <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> + <th>{{ .Get "Year" }}</th> + <th>{{ .Printer.Sprintf "{N:m}" (map "N" 0.01) }}</th> + <th>{{ .Printer.Sprintf "{N:m}" (map "N" 0.02) }}</th> + <th>{{ .Printer.Sprintf "{N:m}" (map "N" 0.05) }}</th> + <th>{{ .Printer.Sprintf "{N:m}" (map "N" 0.10) }}</th> + <th>{{ .Printer.Sprintf "{N:m}" (map "N" 0.20) }}</th> + <th>{{ .Printer.Sprintf "{N:m}" (map "N" 0.50) }}</th> + <th>{{ .Printer.Sprintf "{N:m}" (map "N" 1.00) }}</th> + <th>{{ .Printer.Sprintf "{N:m}" (map "N" 2.00) }}</th> </thead> <tbody> {{ $p := .Printer }} @@ -92,13 +73,13 @@ </th> {{ range .Mintages }} {{ if eq . -1 }} - <td>{{ $p.T "Unknown" }}</td> + <td>{{ $p.Get "Unknown" }}</td> {{ else if eq . -2 }} - <td class="error">{{ $p.T "Error" }}</td> + <td class="error">{{ $p.Get "Error" }}</td> {{ else if eq . 0 }} <td>—</td> {{ else }} - <td>{{ $p.N . }}</td> + <td>{{ $p.Sprintf "{N}" (map "N" .) }}</td> {{ end }} </td> {{ end }} @@ -109,12 +90,12 @@ </figure> {{ if ne (len .Mintages.Commemorative) 0 }} <figure> - <figcaption>{{ .T "Commemorative Coins" }}</figcaption> + <figcaption>{{ .Get "Commemorative Coins" }}</figcaption> <table class="mintage-table-cc" role="grid"> <thead> - <th>{{ .T "Year" }}</th> - <th>{{ .T "Commemorated Issue" }}</th> - <th>{{ .T "Mintage" }}</th> + <th>{{ .Get "Year" }}</th> + <th>{{ .Get "Commemorated Issue" }}</th> + <th>{{ .Get "Mintage" }}</th> </thead> <tbody> {{ $p := .Printer }} @@ -130,13 +111,13 @@ <td>{{ .Name }}</td> {{ with .Mintage }} {{ if eq . -1 }} - <td>{{ $p.T "Unknown" }}</td> + <td>{{ $p.Get "Unknown" }}</td> {{ else if eq . -2 }} - <td class="error">{{ $p.T "Error" }}</td> + <td class="error">{{ $p.Get "Error" }}</td> {{ else if eq . 0 }} <td>—</td> {{ else }} - <td>{{ $p.N . }}</td> + <td>{{ $p.Sprintf "{N}" (map "N" .) }}</td> {{ end }} {{ end }} </tr> @@ -150,12 +131,12 @@ {{ end }} {{ define "coin-type-radio" }} -<label for={{ index . 1 }}> +<label for="{{ index . 1 }}"> <input - id={{ index . 1 }} + id="{{ index . 1 }}" name="type" type="radio" - value={{ index . 1 }} + value="{{ index . 1 }}" {{ if eq (index . 0) (index . 1) }} checked {{ end }} |