summaryrefslogtreecommitdiffhomepage
path: root/templates/coins_designs.templ
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-08-11 03:13:10 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-08-11 03:16:36 +0200
commit3273c65ef82123bf5edbe6d8616630b20a993ce1 (patch)
treed230d18f60122f3a1b65056df197ad1db0ca41b0 /templates/coins_designs.templ
parent3e723305c61673a767da25f683777de368899d41 (diff)
Giant refactoring of the codebase
Diffstat (limited to 'templates/coins_designs.templ')
-rw-r--r--templates/coins_designs.templ41
1 files changed, 0 insertions, 41 deletions
diff --git a/templates/coins_designs.templ b/templates/coins_designs.templ
deleted file mode 100644
index 4732ab0..0000000
--- a/templates/coins_designs.templ
+++ /dev/null
@@ -1,41 +0,0 @@
-package templates
-
-import (
- "fmt"
- "strings"
-
- "git.thomasvoss.com/euro-cash.eu/i18n"
-)
-
-var varietiesLinkStart = `<a href="/coins/varieties">`
-
-func makeURL(c country) templ.SafeURL {
- url := fmt.Sprintf("/coins/designs/%s", strings.ToLower(c.code))
- return templ.SafeURL(url)
-}
-
-templ CoinsDesigns() {
- {{ p := ctx.Value("printer").(i18n.Printer) }}
- <header>
- @navbar()
- <h1>{ p.T("Euro Coin Designs") }</h1>
- </header>
- <main>
- <p>
- @templ.Raw(p.T("Here you’ll be able to view all the coin designs for each country in the Eurozone. This section of the site doesn’t include minor varieties such as different mintmarks or errors; those are on the %svarieties%s page.", varietiesLinkStart, linkEnd))
- </p>
- <hr/>
- <div class="country-grid">
- for _, c := range countries(p, sortByName) {
- <a
- role="button"
- class="outline"
- data-code={ c.code }
- href={ makeURL(c) }
- >
- { p.T(c.name) }
- </a>
- }
- </div>
- </main>
-}