save the provided dictionary accross translations
All checks were successful
Build and publish the docker image / build (push) Successful in 38s
All checks were successful
Build and publish the docker image / build (push) Successful in 38s
Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
@ -6,7 +6,11 @@
|
||||
{{end}}
|
||||
<select name="dictionary">
|
||||
{{range .dictionaries}}
|
||||
<option value="{{.ShortName}}">{{.Name}}</option>
|
||||
{{if and ($.dictionary) (eq $.dictionary .ShortName)}}
|
||||
<option value="{{.ShortName}}" selected>{{.Name}}</option>
|
||||
{{else}}
|
||||
<option value="{{.ShortName}}">{{.Name}}</option>
|
||||
{{end}}
|
||||
{{end}}
|
||||
</select>
|
||||
<button type="submit">Translate</button>
|
||||
|
@ -8,10 +8,8 @@
|
||||
<main>
|
||||
{{template "search" .}}
|
||||
|
||||
{{if not .suggestions}}
|
||||
{{if not .fields}}
|
||||
<h3 class="result">No results :(</h3>
|
||||
{{end}}
|
||||
{{if and (not .suggestions) (not .fields)}}
|
||||
<h3 class="result">No results :(</h3>
|
||||
{{end}}
|
||||
|
||||
{{if .suggestions}}
|
||||
|
Reference in New Issue
Block a user