summaryrefslogtreecommitdiff
path: root/templates/search.html.tmpl
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2025-04-11 16:33:59 +0200
committerMartin Fischer <martin@push-f.com>2025-04-13 20:19:48 +0200
commit50ea018252ce69542eab6a107b99ea8179810d1e (patch)
tree25091624110c413bd095581f79b50cd7ab030656 /templates/search.html.tmpl
parent16b01fd1dfb8797b5529ea444f5b26cd26be9c3c (diff)
refactor: introduce lex-serve package
Diffstat (limited to 'templates/search.html.tmpl')
-rw-r--r--templates/search.html.tmpl30
1 files changed, 0 insertions, 30 deletions
diff --git a/templates/search.html.tmpl b/templates/search.html.tmpl
deleted file mode 100644
index 70c8c86..0000000
--- a/templates/search.html.tmpl
+++ /dev/null
@@ -1,30 +0,0 @@
-<!doctype html>
-<html>
-<head>
- <title>National Law of {{.Country.Name}}</title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
- <link rel="stylesheet" href="//{{.Domain}}/assets/style.css" />
-</head>
-<body>
- <a href="//{{.Domain}}"><img alt="lex.surf" height=140 class=logo src="//{{.Domain}}/assets/logo.svg"></a>
- <h1>National Law of {{.Country.Name}}</h1>
- {{if not .Country.HasPlaceholder}}
- <p><big><a href="{{.Country.SearchURL}}">{{.Country.SearchURL}}</a></big></p>
-
- {{if not .HasJSONLaws}}
- (No search form here because the search isn't linkable.)
- {{end}}
- {{end}}
- {{if .Country.HasPlaceholder}}
- <form>
- {{end}}
- {{if or .Country.HasPlaceholder .HasJSONLaws}}
- <input id=search name=q aria-label="Search" autocomplete="off" autofocus {{if .HasJSONLaws}}data-json{{end}}>
- <ul id=suggestions></ul>
- {{end}}
- {{if .Country.HasPlaceholder}}
- </form>
- {{end}}
- <script src="//{{.Domain}}/assets/script.js"></script>
-</body>
-</html>