From 564d0acca8aea41e9d2d233f64d1cdda6dbcd4ab Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Sun, 13 Apr 2025 21:43:58 +0200 Subject: feat: group countries on start page by level of support --- lex-serve/templates/index.html.tmpl | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'lex-serve/templates/index.html.tmpl') 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 @@

The portal to national law.

-
- {{range $key, $c := .Countries -}} - {{$key | ToUpper}} - {{- end}} -
+
1st tier (autocompletion and short links)
+ {{template "country-links" .FirstTier}} +
2nd tier (search form)
+ {{template "country-links" .SecondTier}} +
3rd tier (just a link)
+ {{template "country-links" .ThirdTier}} +{{define "country-links" -}} +
+ {{range . -}} + {{.Code}} + {{- end}} +
+{{- end -}} -- cgit v1.2.3