diff --git a/controllers/template_functions.go b/controllers/template_functions.go index 3a868638..27b9b3ea 100644 --- a/controllers/template_functions.go +++ b/controllers/template_functions.go @@ -148,9 +148,6 @@ func templateFunctions(vars jet.VarMap) jet.VarMap { return "https://www.gravatar.com/avatar/" + hash + "?s=" + strconv.Itoa(size) }) - vars.Set("DisplayTorrent", func(t models.Torrent, u *models.User) bool { - return (!t.Hidden && t.Status != 0) || u.CurrentOrAdmin(t.UploaderID) - }) vars.Set("NoEncode", func(str string) template.HTML { return template.HTML(str) }) diff --git a/public/css/main.css b/public/css/main.css index 48775132..b361cffb 100644 --- a/public/css/main.css +++ b/public/css/main.css @@ -152,7 +152,7 @@ select.form-input { .language span.input-group { display: inline-block; } .language .input-group label { margin-bottom: 1px; } -.language .input-group input { margin-right: 0; } +.language .input-group input { margin-right: 4px; } .not-important { font-size: 9pt; @@ -177,7 +177,6 @@ select.form-input { .header .h-user button:focus {outline:none; background-color: rgba(0,0,0, 0.3);}::-moz-focus-inner {border:0;} - .header .h-user .user-avatar { float: right; height: 40px; width: 40px; @@ -285,9 +284,6 @@ table { table-layout: fixed; } - -th { height: 40px;} - th,.home-td,.user-td { height: 37px; text-align: center; @@ -329,10 +325,11 @@ th, .home-td { border-bottom: 1px solid; } th { border-bottom-width: 2px; } +.hidden { opacity: 0.5; filter: grayscale(20%);} .tr-cat { width: 90px; text-align: center; } .tr-flag { white-space: initial!important; } .tr-name { width: auto; text-align: left; white-space: normal; word-break: break-word; font-weight: bold; } -.tr-links { width: 66px; } +.tr-links { width: 66px; overflow:initial; } .tr-cs { width: 5px; overflow: initial; text-overflow: initial; } .tr-cs .comment-icon { margin-bottom: 4px; } .tr-size { width: 90px; } @@ -453,8 +450,9 @@ html, body { width: 100%; height: auto; } - .tr-cat { width: 77px; } - .form-input.refine { display: none;} + .tr-cat { width: 73px; } + .form-input.refine { display: none; } + .tr-links { width: 50px; } } @media (maw-width: 520px) { @@ -629,6 +627,7 @@ input#show-filelist:checked ~ #filelist { width: 100%; } tr.torrentinfo { min-height: 38px; } +thead.torrentinfo { min-height: 40px; } .tr-filelist { --nest-level: 0; } diff --git a/templates/layouts/partials/helpers/flags.jet.html b/templates/layouts/partials/helpers/flags.jet.html index 4b298d22..10fc13ae 100644 --- a/templates/layouts/partials/helpers/flags.jet.html +++ b/templates/layouts/partials/helpers/flags.jet.html @@ -2,9 +2,8 @@ {{ if isset(languages) }} {{ range _, language := languages }} - - + {{ end }} {{ end }} -{{ end }} \ No newline at end of file +{{ end }} diff --git a/templates/site/user/torrents.jet.html b/templates/site/user/torrents.jet.html index fe694d48..5819e042 100644 --- a/templates/site/user/torrents.jet.html +++ b/templates/site/user/torrents.jet.html @@ -12,11 +12,10 @@
{{ range i, t := UserProfile.Torrents }} - {{ if DisplayTorrent(t, User) }} {{ torrent := t.ToJSON() }}