diff options
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 -}} |