summaryrefslogtreecommitdiff
path: root/templates/search.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/search.html')
-rw-r--r--templates/search.html10
1 files changed, 7 insertions, 3 deletions
diff --git a/templates/search.html b/templates/search.html
index e5a8e34..8a75962 100644
--- a/templates/search.html
+++ b/templates/search.html
@@ -3,9 +3,13 @@
<form action="/search" method="get">
<input id="term" name="term" type="text" placeholder="search" required>
<select id="lang" name="lang">
- <option>en</option>
- <option>fr</option>
- <option>de</option>
+ {{range .Langs}}
+ {{if eq . $.Lang}}
+ <option selected>{{.}}</option>
+ {{else}}
+ <option>{{.}}</option>
+ {{end}}
+ {{end}}
</select>
</form>
<table>