diff --git a/config/default_config.yml b/config/default_config.yml index 007c9e38..0b70d09f 100644 --- a/config/default_config.yml +++ b/config/default_config.yml @@ -170,7 +170,7 @@ users: default_notifications_settings: {"new_torrent": true, "new_torrent_email": false, "new_comment": true, "new_comment_email": false, "new_responses": false, "new_responses_email": false, "new_follower": false, "new_follower_email": false, "followed": false, "followed_email": false} navigation: torrents_per_page: 50 - max_torrents_per_page: 300 + max_torrents_per_page: 500 log: # AccessLogFilePath : Path to logs access access_log_filepath: log/access diff --git a/controllers/moderator/index.go b/controllers/moderator/index.go index 1189a7f5..8783910c 100644 --- a/controllers/moderator/index.go +++ b/controllers/moderator/index.go @@ -13,7 +13,7 @@ import ( // IndexModPanel : Controller for showing index page of Mod Panel func IndexModPanel(c *gin.Context) { offset := 10 - torrents, _, _ := torrents.FindAll(offset, 0) + torrents, _, _ := torrents.FindAllOrderBy("torrent_id DESC", offset, 0) users, _ := users.FindUsersForAdmin(offset, 0) comments, _ := comments.FindAll(offset, 0, "", "") torrentReports, _, _ := reports.GetAll(offset, 0) diff --git a/controllers/settings/settings.go b/controllers/settings/settings.go index ff84926b..5fcd2b95 100644 --- a/controllers/settings/settings.go +++ b/controllers/settings/settings.go @@ -31,7 +31,7 @@ func SeePublicSettingsHandler(c *gin.Context) { // ChangePublicSettingsHandler : Controller for changing the current language and theme func ChangePublicSettingsHandler(c *gin.Context) { theme := c.PostForm("theme") - lang := c.PostForm("language") + lang := c.PostForm("lang") mascot := c.PostForm("mascot") mascotURL := c.PostForm("mascot_url") altColors := c.PostForm("altColors") diff --git a/public/css/themes/classic.css b/public/css/themes/classic.css index 0a641589..fb98ef0a 100644 --- a/public/css/themes/classic.css +++ b/public/css/themes/classic.css @@ -265,10 +265,10 @@ select.form-input { .website-nav .pagination span { min-width: auto; } -.website-nav #page-prev{ +.website-nav .page-prev{ float: left; } -.website-nav #page-next{ +.website-nav .page-next{ float: right; } @@ -348,7 +348,7 @@ span.comment-user:hover { margin: 1px 0; } -#solution { +.solution { margin-top: -3px; } diff --git a/templates/layouts/partials/helpers/captcha.jet.html b/templates/layouts/partials/helpers/captcha.jet.html index edf7a0d1..89ed2953 100644 --- a/templates/layouts/partials/helpers/captcha.jet.html +++ b/templates/layouts/partials/helpers/captcha.jet.html @@ -11,7 +11,7 @@ {{ T("captcha_audio") }} - + {{end}} {{end}} diff --git a/templates/layouts/partials/helpers/oldNav.jet.html b/templates/layouts/partials/helpers/oldNav.jet.html index b8b5a051..270e5748 100644 --- a/templates/layouts/partials/helpers/oldNav.jet.html +++ b/templates/layouts/partials/helpers/oldNav.jet.html @@ -5,7 +5,7 @@ {{ range _, cat := GetCategories(true, false) }} {{if Search.Category == cat.ID ||(len(Search.Category) > 2 && Search.Category[:2] == cat.ID)}}{{ T(cat.Name) }}{{else}}{{ T(cat.Name) }}{{end}} - {{ if _ % 3 == 2}} + {{ if _ % 3 == 2 && _ + 1 != len(GetCategories(true, false)) }} {{end}} diff --git a/templates/layouts/partials/helpers/search.jet.html b/templates/layouts/partials/helpers/search.jet.html index 3e7f74f6..e182fe82 100644 --- a/templates/layouts/partials/helpers/search.jet.html +++ b/templates/layouts/partials/helpers/search.jet.html @@ -34,7 +34,7 @@ - {{ T("limit_torrent_count")}}: + {{ T("limit_torrent_count")}}: {{ T("from_user") }}: diff --git a/templates/site/user/public/settings.jet.html b/templates/site/user/public/settings.jet.html index f7cb5673..d4d8fea1 100644 --- a/templates/site/user/public/settings.jet.html +++ b/templates/site/user/public/settings.jet.html @@ -8,7 +8,7 @@

{{ T("language")}}

- {{ range translatedName := Form.Languages }} {{ end }} @@ -67,21 +67,29 @@ {{ block footer_js()}}