diff options
author | Martin Fischer <martin@push-f.com> | 2025-04-13 21:43:58 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2025-04-14 07:04:45 +0200 |
commit | 564d0acca8aea41e9d2d233f64d1cdda6dbcd4ab (patch) | |
tree | 4566aa20d6e07e21d5b9ea8a9f1c366a108bf7ce /lex-serve/templates/index.html.tmpl | |
parent | 28a279dafa0f3c8ca4400c72fad1b38fe31d0100 (diff) |
feat: group countries on start page by level of support
Diffstat (limited to 'lex-serve/templates/index.html.tmpl')
-rw-r--r-- | lex-serve/templates/index.html.tmpl | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/lex-serve/templates/index.html.tmpl b/lex-serve/templates/index.html.tmpl index 3d8c04f..108bc17 100644 --- a/lex-serve/templates/index.html.tmpl +++ b/lex-serve/templates/index.html.tmpl @@ -8,10 +8,18 @@ <body> <img alt="lex.surf" height=140 class=logo src="/assets/logo.svg"> <h2>The portal to national law.</h2> - <div class=countries> - {{range $key, $c := .Countries -}} - <a class=cc-link href="//{{$key}}.{{$.Domain}}" title="{{$c.Name}}">{{$key | ToUpper}}</a> - {{- end}} - </div> + <div>1st tier (autocompletion and short links)</div> + {{template "country-links" .FirstTier}} + <div>2nd tier (search form)</div> + {{template "country-links" .SecondTier}} + <div>3rd tier (just a link)</div> + {{template "country-links" .ThirdTier}} </body> </html> +{{define "country-links" -}} +<div class=countries> + {{range . -}} + <a class=cc-link href="{{.URL}}" title="{{.Name}}">{{.Code}}</a> + {{- end}} +</div> +{{- end -}} |