Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0

Merge pull request #1192 from Kiloutre/patch-8

#1191
Cette révision appartient à :
akuma06 2017-07-14 22:27:41 +02:00 révisé par GitHub
révision d9a95de7f1
4 fichiers modifiés avec 11 ajouts et 18 suppressions

Voir le fichier

@ -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)
})

Voir le fichier

@ -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;
}

Voir le fichier

@ -2,9 +2,8 @@
{{ if isset(languages) }}
{{ range _, language := languages }}
<span class="input-group">
<input type="checkbox" name="{{inputname}}" id="lang-{{ language.Code }}" value="{{language.Code}}"{{ range _, v := selected}}{{ if contains(v, language.Code) }} checked{{end}}{{end}}>
<label for="lang-{{ language.Code }}" class="flag flag-{{ language.Flag(false) }}" title="{{LanguageName(language, T)}}"></label>
<input type="checkbox" name="{{inputname}}" id="lang-{{ language.Code }}" value="{{language.Code}}"{{ range _, v := selected}}{{ if contains(v, language.Code) }} checked{{end}}{{end}}><label for="lang-{{ language.Code }}" class="flag flag-{{ language.Flag(false) }}" title="{{LanguageName(language, T)}}"></label>
</span>
{{ end }}
{{ end }}
{{ end }}
{{ end }}

Voir le fichier

@ -12,11 +12,10 @@
<th class="tr-date user-td hide-xs">{{ T("date")}}</th>
</tr>
{{ range i, t := UserProfile.Torrents }}
{{ if DisplayTorrent(t, User) }}
{{ torrent := t.ToJSON() }}
<tr class="torrent-info
{{if torrent.Status == 2}}remake{{else if torrent.Status == 3}}trusted{{else if torrent.Status == 4}}aplus{{end}}">
<!-- forced width because the <td> gets bigger randomly otherwise -->
{{if torrent.Status == 2}}remake{{else if torrent.Status == 3}}trusted{{else if torrent.Status == 4}}aplus{{end}}{{ if torrent.hidden }} hidden{{end}}"
{{if torrent.hidden }}title="{{T("upload_as_anon")}}: {{T("yes")}}"{{end}}>
<td class="tr-cat user-td">
{{ if Sukebei }}
<div class="nyaa-cat sukebei-cat-{{ torrent.Category }}{{ torrent.SubCategory}}">
@ -53,7 +52,6 @@
<td class="tr-date user-td date-short hide-xs">{{torrent.Date}}</td>
</tr>
{{end}}
{{end}}
</table>
<nav class="torrentNav" aria-label="Page navigation">
<ul class="pagination">