diff --git a/controllers/settings/settings.go b/controllers/settings/settings.go index 0f4049f7..22f961ed 100644 --- a/controllers/settings/settings.go +++ b/controllers/settings/settings.go @@ -34,6 +34,7 @@ func ChangePublicSettingsHandler(c *gin.Context) { mascot := c.PostForm("mascot") mascotURL := c.PostForm("mascot_url") altColors := c.PostForm("altColors") + oldNav := c.PostForm("oldNav") messages := msg.GetMessages(c) @@ -61,6 +62,7 @@ func ChangePublicSettingsHandler(c *gin.Context) { user.Mascot = mascot user.MascotURL = mascotURL user.AltColors = altColors + user.OldNav = oldNav user.UpdateRaw() } // Set cookie with http and not gin for expires (maxage not supported in
{{ adId = Sukebei() ? 634159 : 634157 }} - +
- {{ if !EUCookieLaw }}{{ end }} - + {{ if !EUCookieLaw && URL.String() == ""}}{{ end }} + {{block footer_js()}}{{end}} diff --git a/templates/layouts/partials/helpers/OldNav.jet.html b/templates/layouts/partials/helpers/OldNav.jet.html new file mode 100644 index 00000000..c73669c5 --- /dev/null +++ b/templates/layouts/partials/helpers/OldNav.jet.html @@ -0,0 +1,24 @@ +
+ + + + + + + + +
+ {{ if Search.Sort != 2 && Search.Sort != 0}}Date{{else}}Date{{end}} / + {{ if Search.Sort != 5}}Seeders{{else}}Seeders{{end}} / + {{ if Search.Sort != 6}}Leechers{{else}}Leechers{{end}} / + {{ if Search.Sort != 7}}Downloads{{else}}Downloads{{end}} / + {{ if Search.Sort != 4}}Size{{else}}Size{{end}} / + {{ if Search.Sort != 1}}Name{{else}}Name{{end}} + | + {{ if Search.Order}}Ascending{{else}}Ascending{{end}} / + {{ if !Search.Order}}Descending{{else}}Descending{{end}} +
+ +
diff --git a/templates/layouts/partials/helpers/search.jet.html b/templates/layouts/partials/helpers/search.jet.html index fd899e44..0f35b354 100644 --- a/templates/layouts/partials/helpers/search.jet.html +++ b/templates/layouts/partials/helpers/search.jet.html @@ -12,8 +12,10 @@ {{end}} {{block search_refine(url="") }} +{{ if OldNav && (URL.String() == "/" || kilo_strcmp(URL.String(), "/search", 7, 1) )}} + {{ include "layouts/partials/helpers/oldNav" }} +{{ else }}
-

{{ T("refine_search") }}

@@ -44,10 +46,10 @@ {{ T("and")}} {{ T("large")}} @@ -61,16 +63,16 @@ {{T("sort_by")}}
@@ -100,3 +102,4 @@
{{end}} +{{end}} diff --git a/templates/site/torrents/listing.jet.html b/templates/site/torrents/listing.jet.html index 9c033531..ea194747 100644 --- a/templates/site/torrents/listing.jet.html +++ b/templates/site/torrents/listing.jet.html @@ -69,7 +69,7 @@ - + {{.Name}} diff --git a/templates/site/torrents/view.jet.html b/templates/site/torrents/view.jet.html index 1a7d248b..d12d6fa0 100644 --- a/templates/site/torrents/view.jet.html +++ b/templates/site/torrents/view.jet.html @@ -177,13 +177,16 @@ {{range index, element := Torrent.Comments}}
- #{{index}} + {{index}} {{formatDateRFC(element.Date)}} -

{{element.Username}}

-

{{element.Content|raw}}

+

{{element.Username}}

+

{{element.Content|raw}}

{{end}} + {{ if len(Torrent.Comments) == 0 }} +

{{ T("torrent_no_comments") }}

+ {{ end }}
{{ yield csrf_field()}} diff --git a/templates/site/user/public/settings.jet.html b/templates/site/user/public/settings.jet.html index 2bd53561..40f13d78 100644 --- a/templates/site/user/public/settings.jet.html +++ b/templates/site/user/public/settings.jet.html @@ -42,6 +42,7 @@

{{ T("alternating_color") }}

+

{{ T("old_nav_explanation") }}

+ + + +
+
+

{{ T("cookies")}}

diff --git a/templates/site/user/register.jet.html b/templates/site/user/register.jet.html index 26a81e42..c295b96f 100644 --- a/templates/site/user/register.jet.html +++ b/templates/site/user/register.jet.html @@ -2,6 +2,7 @@ {{ import "layouts/partials/helpers/csrf" }} {{ import "layouts/partials/helpers/captcha" }} {{ import "layouts/partials/helpers/errors" }} +{{ import "layouts/partials/helpers/rules" }} {{block title()}}{{ T("register_title") }}{{end}} {{block content_body()}}
@@ -44,6 +45,7 @@

{{ T("terms_conditions") }}