summaryrefslogtreecommitdiff
path: root/lex-serve/templates/index.html.tmpl
blob: 6064f49464a7e234a49e921e95528d22ce0f04fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!doctype html>
<html>
<head>
	<title>Lex.surf: Portal to National Law</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
	<link rel="stylesheet" href="/assets/style.css" />
</head>
<body>
	<img alt="lex.surf" height=140 class=logo src="/assets/logo.svg">
	<h2>The portal to&nbsp;national&nbsp;law.</h2>
	<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}}
	<p><a href="https://git.push-f.com/lex-surf">source code</a></p>
</body>
</html>
{{define "country-links" -}}
<div class=countries>
	{{range . -}}
	<a class=cc-link href="{{.URL}}" title="{{.Name}}">{{.Code}}</a>
	{{- end}}
</div>
{{- end -}}