diff --git a/controllers/template_test.go b/controllers/template_test.go
index b32098f4..dd054936 100644
--- a/controllers/template_test.go
+++ b/controllers/template_test.go
@@ -56,7 +56,7 @@ func walkDirTest(dir string, t *testing.T) {
},
"edit.jet.html": func(vars jet.VarMap) jet.VarMap {
vars.Set("Form", &torrentValidator.TorrentRequest{})
- vars.Set("Languages", publicSettings.Languages{{"", ""}})
+ vars.Set("Languages", publicSettings.Languages{{"", "", ""}})
return vars
},
"upload.jet.html": func(vars jet.VarMap) jet.VarMap {
@@ -69,7 +69,7 @@ func walkDirTest(dir string, t *testing.T) {
return vars
},
"settings.jet.html": func(vars jet.VarMap) jet.VarMap {
- vars.Set("Form", &LanguagesJSONResponse{"", publicSettings.Languages{{"", ""}}})
+ vars.Set("Form", &LanguagesJSONResponse{"", publicSettings.Languages{{"", "", ""}}})
return vars
},
"login.jet.html": func(vars jet.VarMap) jet.VarMap {
diff --git a/templates/admin/paneltorrentedit.jet.html b/templates/admin/paneltorrentedit.jet.html
index 43a33ffc..e15412cb 100644
--- a/templates/admin/paneltorrentedit.jet.html
+++ b/templates/admin/paneltorrentedit.jet.html
@@ -22,8 +22,8 @@
{{ range _, language := GetTorrentLanguages() }}
-
-
+
+
{{ end }}
diff --git a/templates/layouts/index_admin.jet.html b/templates/layouts/index_admin.jet.html
index eae60fbb..88e4a9c2 100644
--- a/templates/layouts/index_admin.jet.html
+++ b/templates/layouts/index_admin.jet.html
@@ -1,5 +1,6 @@
{* We extend the base template *}
{{ extends "partials/base" }}
+{{import "partials/helpers/search"}}
{* We apply the menu in the base template *}
{{ block menu()}}
diff --git a/templates/layouts/index_site.jet.html b/templates/layouts/index_site.jet.html
index 9638dbd8..01ca5a3d 100644
--- a/templates/layouts/index_site.jet.html
+++ b/templates/layouts/index_site.jet.html
@@ -1,5 +1,6 @@
{* We extend the base template *}
{{ extends "partials/base" }}
+{{import "partials/helpers/search"}}
{* We apply the menu in the base template *}
{{ block menu()}}
diff --git a/templates/layouts/partials/base.jet.html b/templates/layouts/partials/base.jet.html
index 8d8e6953..b56036f0 100644
--- a/templates/layouts/partials/base.jet.html
+++ b/templates/layouts/partials/base.jet.html
@@ -1,6 +1,5 @@
{{import "helpers/errors"}}
{{import "helpers/infos"}}
-{{import "helpers/search"}}
diff --git a/templates/layouts/partials/helpers/search.jet.html b/templates/layouts/partials/helpers/search.jet.html
index 2ced6b49..fbf759f2 100644
--- a/templates/layouts/partials/helpers/search.jet.html
+++ b/templates/layouts/partials/helpers/search.jet.html
@@ -57,8 +57,8 @@
{{ range _, language := GetTorrentLanguages() }}
-
-
+
+
{{ end }}
diff --git a/templates/site/torrents/edit.jet.html b/templates/site/torrents/edit.jet.html
index 15e6a1bd..a2d6cac1 100644
--- a/templates/site/torrents/edit.jet.html
+++ b/templates/site/torrents/edit.jet.html
@@ -28,7 +28,7 @@
{{ range _, language := GetTorrentLanguages() }}
-
+
{{ end }}
diff --git a/templates/site/torrents/listing.jet.html b/templates/site/torrents/listing.jet.html
index 8a83aa7e..4601ed2b 100644
--- a/templates/site/torrents/listing.jet.html
+++ b/templates/site/torrents/listing.jet.html
@@ -49,7 +49,7 @@
{{if .Languages[0] != "" }}
1 && (key+1) < len(.Languages) }},{{ end }}{{ end }}">
-
+
{{end}}
diff --git a/templates/site/torrents/upload.jet.html b/templates/site/torrents/upload.jet.html
index fea82255..003eaeb8 100644
--- a/templates/site/torrents/upload.jet.html
+++ b/templates/site/torrents/upload.jet.html
@@ -34,7 +34,7 @@
{{ range _, language := GetTorrentLanguages() }}
-
+
{{ end }}
diff --git a/templates/site/torrents/view.jet.html b/templates/site/torrents/view.jet.html
index a98b5b72..9d5a0301 100644
--- a/templates/site/torrents/view.jet.html
+++ b/templates/site/torrents/view.jet.html
@@ -36,7 +36,7 @@
{{ range _, language := Torrent.Languages}}
{{ if language != "" }}
- {{ LanguageName(language, T) }}
+ {{ LanguageName(language, T) }}
{{end}}
{{end}}
|
diff --git a/templates/site/user/torrents.jet.html b/templates/site/user/torrents.jet.html
index fc7fee68..755ab90e 100644
--- a/templates/site/user/torrents.jet.html
+++ b/templates/site/user/torrents.jet.html
@@ -26,7 +26,7 @@
{{ if torrent.Languages[0] != "" }}
1 && (key+1) < len(torrent.Languages) }},{{ end }}{{ end }}">
-
+
{{end}}