diff options
Diffstat (limited to 'src/templates/coins-designs-ee.html.tmpl')
-rw-r--r-- | src/templates/coins-designs-ee.html.tmpl | 217 |
1 files changed, 127 insertions, 90 deletions
diff --git a/src/templates/coins-designs-ee.html.tmpl b/src/templates/coins-designs-ee.html.tmpl index a6a62e9..ee648db 100644 --- a/src/templates/coins-designs-ee.html.tmpl +++ b/src/templates/coins-designs-ee.html.tmpl @@ -1,3 +1,54 @@ +{{ define "header" }} +{{ template "header-navbar" . }} + +<style> + @media (max-width: 500px) { + #ee-vote-table { + tr:first-child td:first-child { + border-top: var(--border-width) solid var(--table-border-color); + } + + thead, tfoot { + display: none; + } + tbody, tr, td { + display: block; + } + + tr { + &:nth-child(even) { + background-color: var(--table-row-stripped-background-color); + } + + td:not(:first-child) { + padding-top: calc(var(--spacing) / 4); + } + td:not(:last-child) { + padding-bottom: 0; + border-bottom: none; + } + } + + td { + padding-left: 50%; + position: relative; + text-align: left; + + } + + :is(td, span)::before { + content: attr(data-label); + position: absolute; + left: 0; + width: 50%; + padding-left: 2ch; + font-weight: bold; + } + } + } +</style> +{{ end }} + {{ define "content" }} <header> {{ template "navbar" . }} @@ -15,11 +66,11 @@ (map "EstonianStart" `<span lang="et"><em>` "EstonianEnd" "em,span") }} </p> <p> - {{ .Get "The design of the Estonian euro coins was chosen as part of a {EVLink:L}Eurovision{-:E}-style public televote where it competed and won against 9 other designs." - (map "EVLink" "https://en.wikipedia.org/wiki/Eurovision_Song_Contest" ) }} + {{ .Get "The design of the Estonian euro coins was chosen as part of a {Link:L}Eurovision{-:E}-style public televote where it competed and won against 9 other designs." + (map "Link" (.Printer.Wikipedia "Eurovision Song Contest")) }} </p> <p> - {{ .Get "In June 2024 a public design competition was announced with a deadline for the 19th of October. In total 134 designs were submitted by the deadline and 10 designs were selected by a jury. These 10 designs were then voted on in a public vote over the course of one week. In total 45,453 people voted and the current design won with a total of 12,482 votes (27.46%)." }} + {{ .Get "In June 2004 a public design competition was announced with a deadline for the 19th of October. A total of 134 designs were submitted by the deadline and of these submissions, 10 were picked by a jury to partake in the public vote over the course of one week. In total, 45,453 people voted and the current design won with a total of 12,482 votes (27.46%)." }} </p> <p> {{ .Get "The winner of the contest was awarded 50,000 KR (€3,196) while the other finalists were each awarded 20,000 KR (€1,278)." }} @@ -28,126 +79,112 @@ <!-- TODO: Add images of the other designs: https://web.archive.org/web/20070704210956/http://www.eestipank.info/pub/et/majandus/euroopaliit/euro/kavand/_1kava.html --> <!-- Good description of one of the designs: http://www.worldofcoins.eu/forum/index.php/topic,21902.15.html?PHPSESSID=pc4qnnd3ng4etv8fp75u41erb1 --> - <table> + <table id="ee-vote-table"> <thead> <tr> <th data-numeric style="width: 1%">{{ .Get "Position" }}</th> - <th>{{ .Get "Name" }}<br>{{ .Get "Translation" }}</th> + <th> + {{ .Get "Name" }}<br> + <span class="translation">{{ .Get "Translation" }}</span> + </th> <th>{{ .Get "Author(s)" }}</th> <th data-numeric>{{ .Get "Votes" }}</th> - <th data-numeric>{{ .Get "Votes (%)" }}</th> + <th data-numeric>{{ .Get "Votes (%)" }}</th> </tr> </thead> <tbody> - {{ $args := (map "Break" "<br>") }} + {{ $args := map "Break" "<br>" }} + {{ $tag := printf `td data-label="%s"` (.Get "Name") }} + {{ $attr := printf `data-label="%s"` (.Get "Translation") }} <tr> - <td data-numeric>1</td> - {{/* TRANSLATORS: This is a place name. If you’re translating for a latin-script language, translate this to ‘{Null}’, otherwise transliterate this into your respective alphabet. */}} - <td>Hara 2{{ .Get "{Break:r}Hara 2" $args }}</td> - <td>{{ .Get "Lembit Lõhmus" }}</td> - <td data-numeric>{{ .Printer.Itoa 12482 }}</td> - <td data-numeric>{{ .Printer.Ftoa 27.46 }}</td> + <td data-label="{{ .Get `Position` }}" data-numeric>1</td> + {{/* TRANSLATORS: Name of a coin design. Don’t translate unless you use a non-latin script */}} + {{ withTranslation $tag "et" "Hara 2" + (.Get "Hara 2") $attr }} + <td data-label="{{ .Get `Author(s)` }}">{{ .Get "Lembit Lõhmus" }}</td> + <td data-label="{{ .Get `Votes` }}" data-numeric>{{ .Printer.Itoa 12482 }}</td> + <td data-label="{{ .Get `Votes (%)` }}" data-numeric>{{ .Printer.Ftop 27.46 }}</td> </tr> <tr> - <td data-numeric>2</td> - <td> - <span lang="et">Järjepidevus</span> - {{/* TRANSLATORS: Estonian translators should replace the entire translation with ‘{Null}’ */}} - {{ .Get "{Break:r}Consistency" $args }} - </td> - <td>{{ .Get "Tiit Jürna" }}</td> - <td data-numeric>{{ .Printer.Itoa 7477 }}</td> - <td data-numeric>{{ .Printer.Ftoa 16.45 }}</td> + <td data-label="{{ .Get `Position` }}" data-numeric>2</td> + {{ withTranslation $tag "et" "Järjepidevus" + (.Get "Consistency") $attr }} + <td data-label="{{ .Get `Author(s)` }}">{{ .Get "Tiit Jürna" }}</td> + <td data-label="{{ .Get `Votes` }}" data-numeric>{{ .Printer.Itoa 7477 }}</td> + <td data-label="{{ .Get `Votes (%)` }}" data-numeric>{{ .Printer.Ftop 16.45 }}</td> </tr> <tr> - <td data-numeric>3</td> - <td> - <span lang="la">In corpore</span> - {{ .Get "{Break:r}In the Body" $args }} - </td> - <td>{{ .Get "Jaan Meristo" }}</td> - <td data-numeric>{{ .Printer.Itoa 7284 }}</td> - <td data-numeric>{{ .Printer.Ftoa 16.03 }}</td> + <td data-label="{{ .Get `Position` }}" data-numeric>3</td> + {{ withTranslation $tag "la" "In corpore" + (.Get "In the Body") $attr }} + <td data-label="{{ .Get `Author(s)` }}">{{ .Get "Jaan Meristo" }}</td> + <td data-label="{{ .Get `Votes` }}" data-numeric>{{ .Printer.Itoa 7284 }}</td> + <td data-label="{{ .Get `Votes (%)` }}" data-numeric>{{ .Printer.Ftop 16.03 }}</td> </tr> <tr> - <td data-numeric>4</td> - <td> - Tomson 5791 - {{/* TRANSLATORS: This name. If you’re translating for a latin-script language, translate this to ‘{Null}’, otherwise transliterate this into your respective alphabet. */}} - {{ .Get "{Break:r}Tomson 5791" $args }} - </td> - <td>{{ .Get "Taavi Torim" }}</td> - <td data-numeric>{{ .Printer.Itoa 6219 }}</td> - <td data-numeric>{{ .Printer.Ftoa 13.68 }}</td> + <td data-label="{{ .Get `Position` }}" data-numeric>4</td> + {{/* TRANSLATORS: Name of a coin design. Don’t translate unless you use a non-latin script */}} + {{ withTranslation $tag "et" "Tomson 5791" + (.Get "Tomson 5791") $attr }} + <td data-label="{{ .Get `Author(s)` }}">{{ .Get "Taavi Torim" }}</td> + <td data-label="{{ .Get `Votes` }}" data-numeric>{{ .Printer.Itoa 6219 }}</td> + <td data-label="{{ .Get `Votes (%)` }}" data-numeric>{{ .Printer.Ftop 13.68 }}</td> </tr> <tr> - <td data-numeric>5</td> - <td> - <span lang="et">Eesti keel</span> - {{/* TRANSLATORS: Estonian translators should replace the entire translation with ‘{Null}’ */}} - {{ .Get "{Break:r}Estonian" $args }} - </td> - <td>{{ .Get "Jaak Peep, Villem Valme" }}</td> - <td data-numeric>{{ .Printer.Itoa 5997 }}</td> - <td data-numeric>{{ .Printer.Ftoa 13.19 }}</td> + <td data-label="{{ .Get `Position` }}" data-numeric>5</td> + {{/* TRANSLATORS: Estonian Translators: ‘Estonian’ as in the language, not the nationality */}} + {{ withTranslation $tag "et" "Eesti keel" + (.GetC "Estonian" "Coin Design") $attr }} + <td data-label="{{ .Get `Author(s)` }}">{{ .Get "Jaak Peep, Villem Valme" }}</td> + <td data-label="{{ .Get `Votes` }}" data-numeric>{{ .Printer.Itoa 5997 }}</td> + <td data-label="{{ .Get `Votes (%)` }}" data-numeric>{{ .Printer.Ftop 13.19 }}</td> </tr> <tr> - <td data-numeric>6</td> - <td>261948</td> - <td>{{ .Get "Mai Järmut, Villu Järmut" }}</td> - <td data-numeric>{{ .Printer.Itoa 3036 }}</td> - <td data-numeric>{{ .Printer.Ftoa 6.68 }}</td> + <td data-label="{{ .Get `Position` }}" data-numeric>6</td> + <td data-label="{{ .Get `Name` }}">261948</td> + <td data-label="{{ .Get `Author(s)` }}">{{ .Get "Mai Järmut, Villu Järmut" }}</td> + <td data-label="{{ .Get `Votes` }}" data-numeric>{{ .Printer.Itoa 3036 }}</td> + <td data-label="{{ .Get `Votes (%)` }}" data-numeric>{{ .Printer.Ftop 6.68 }}</td> </tr> <tr> - <td data-numeric>7</td> - <td> - <span lang="et">Linnutee</span> - {{/* TRANSLATORS: Estonian translators should replace the entire translation with ‘{Null}’ */}} - {{ .Get "{Break:r}Bird Road" $args }} - </td> - <td>{{ .Get "Tiit Jürna" }}</td> - <td data-numeric>{{ .Printer.Itoa 1323 }}</td> - <td data-numeric>{{ .Printer.Ftoa 2.91 }}</td> + <td data-label="{{ .Get `Position` }}" data-numeric>7</td> + {{ withTranslation $tag "et" "Linnutee" + (.Get "Bird Road") $attr }} + <td data-label="{{ .Get `Author(s)` }}">{{ .Get "Tiit Jürna" }}</td> + <td data-label="{{ .Get `Votes` }}" data-numeric>{{ .Printer.Itoa 1323 }}</td> + <td data-label="{{ .Get `Votes (%)` }}" data-numeric>{{ .Printer.Ftop 2.91 }}</td> </tr> <tr> - <td data-numeric>8</td> - <td> - <span lang="et">Leopardid-2</span> - {{/* TRANSLATORS: Estonian translators should replace the entire translation with ‘{Null}’ */}} - {{ .Get "{Break:r}Leopards-2" $args }} - </td> - <td>{{ .Get "Jaarno Ester" }}</td> - <td data-numeric>{{ .Printer.Itoa 759 }}</td> - <td data-numeric>{{ .Printer.Ftoa 1.67 }}</td> + <td data-label="{{ .Get `Position` }}" data-numeric>8</td> + {{ withTranslation $tag "et" "Leopardid-2" + (.Get "Leopards-2") $attr }} + <td data-label="{{ .Get `Author(s)` }}">{{ .Get "Jaarno Ester" }}</td> + <td data-label="{{ .Get `Votes` }}" data-numeric>{{ .Printer.Itoa 759 }}</td> + <td data-label="{{ .Get `Votes (%)` }}" data-numeric>{{ .Printer.Ftop 1.67 }}</td> </tr> <tr> - <td data-numeric>9</td> - <td> - Nova - {{/* TRANSLATORS: This name. If you’re translating for a latin-script language, translate this to ‘{Null}’, otherwise transliterate this into your respective alphabet. */}} - {{ .Get "{Break:r}Nova" $args }} - </td> - <td>{{ .Get "Rene Haljasmäe" }}</td> - <td data-numeric>{{ .Printer.Itoa 498 }}</td> - <td data-numeric>{{ .Printer.Ftoa 1.1 }}</td> + <td data-label="{{ .Get `Position` }}" data-numeric>9</td> + {{/* TRANSLATORS: Name of a coin design. Don’t translate unless you use a non-latin script */}} + {{ withTranslation $tag "et" "Nova" + (.Get "Nova") $attr }} + <td data-label="{{ .Get `Author(s)` }}">{{ .Get "Rene Haljasmäe" }}</td> + <td data-label="{{ .Get `Votes` }}" data-numeric>{{ .Printer.Itoa 498 }}</td> + <td data-label="{{ .Get `Votes (%)` }}" data-numeric>{{ .Printer.Ftop 1.1 }}</td> </tr> <tr> - <td data-numeric>10</td> - <td> - <span lang="et">Lill rukkis</span> - {{/* TRANSLATORS: Estonian translators should replace the entire translation with ‘{Null}’ */}} - {{ .Get "{Break:r}A Flower in the Rye" $args }} - </td> - <td>{{ .Get "Margus Kadarik" }}</td> - <td data-numeric>{{ .Printer.Itoa 378 }}</td> - <td data-numeric>{{ .Printer.Ftoa 0.83 }}</td> + <td data-label="{{ .Get `Position` }}" data-numeric>10</td> + {{ withTranslation $tag "et" "Lill rukkis" + (.Get "A Flower in the Rye") $attr }} + <td data-label="{{ .Get `Author(s)` }}">{{ .Get "Margus Kadarik" }}</td> + <td data-label="{{ .Get `Votes` }}" data-numeric>{{ .Printer.Itoa 378 }}</td> + <td data-label="{{ .Get `Votes (%)` }}" data-numeric>{{ .Printer.Ftop 0.83 }}</td> </tr> </tbody> <tfoot> <tr> <th colspan="3">{{ .Get "Total" }}</th> <th data-numeric>{{ .Printer.Itoa 45453 }}</th> - <th data-numeric>{{ .Printer.Ftoa 100.0 }}</th> + <th data-numeric>{{ .Printer.Ftop 100.0 }}</th> </tr> </tfoot> </table> |