summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2025-04-06 09:59:04 +0200
committerMartin Fischer <martin@push-f.com>2025-04-13 20:19:48 +0200
commit96166f3f17a048499cd6c9af95e81d8f4c655978 (patch)
treebfd461325a80dbe2949c3ab06cabbfa2bee6f61e /views
parentd218bee6b8ab4fd10bec88269270a2412bdbbb46 (diff)
refactor: rename views/ to templates/
Diffstat (limited to 'views')
-rw-r--r--views/index.html17
-rw-r--r--views/search.html30
2 files changed, 0 insertions, 47 deletions
diff --git a/views/index.html b/views/index.html
deleted file mode 100644
index 3d8c04f..0000000
--- a/views/index.html
+++ /dev/null
@@ -1,17 +0,0 @@
-<!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 class=countries>
- {{range $key, $c := .Countries -}}
- <a class=cc-link href="//{{$key}}.{{$.Domain}}" title="{{$c.Name}}">{{$key | ToUpper}}</a>
- {{- end}}
- </div>
-</body>
-</html>
diff --git a/views/search.html b/views/search.html
deleted file mode 100644
index 70c8c86..0000000
--- a/views/search.html
+++ /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>