Small changes (#1627)
* Change probability of which ad shows up * Fix missing line break in FAQ * remove now useless thing * Fix torrent auto-updating script
Cette révision appartient à :
Parent
30517b314e
révision
e49dd1a7b9
|
@ -44,7 +44,7 @@
|
|||
<nav id="header" class="header">
|
||||
{{block menu()}}{{end}}
|
||||
</nav>
|
||||
{{ AdType := kilo_rand(3) }}
|
||||
{{ AdType := kilo_rand(1) }}
|
||||
<div id="content" class="{{ block contclass()}}{{end}}">
|
||||
<div class="content container center">
|
||||
{{ yield infos()}}
|
||||
|
|
|
@ -8,12 +8,3 @@
|
|||
{{end}}
|
||||
{{end}}
|
||||
{{end}}
|
||||
{{block ad_cube()}}
|
||||
{{ if !kilo_strcmp(URL.String(), "/mod", 4, 1) }}
|
||||
{{ ID := kilo_rand(2) + (Sukebei()) }}
|
||||
{{ if ID == 0}} <a href="https://jlist.com/category/games-computers?utm_source=NS&utm_medium=Nyaa&utm_campaign=sep17"><img alt="JList Games" class="jl-c" src="/img/Jlist/Games_300x250.jpg"></a> {{ end }}
|
||||
{{ if ID == 1}} <a href="https://jlist.com/category/snacks-food?utm_source=NS&utm_medium=Nyaa&utm_campaign=sep17"><img alt="JList Snacks" class="jl-c" src="/img/Jlist/Snacks_300x250.jpg"></a> {{ end }}
|
||||
{{ if ID == 2}} <a href="https://jlist.com/series/touhou-project?utm_source=NS&utm_medium=Nyaa&utm_campaign=sep17"><img alt="JList Touhou" class="jl-c" src="/img/Jlist/Touhou_300x250.jpg"></a> {{ end }}
|
||||
{{ if ID == 3}} <a href="https://jlist.com/category/adult-corner?utm_source=NS&utm_medium=Nyaa&utm_campaign=sep17"><img alt="JList Onaholes" class="jl-w" src="/img/Jlist/Onahole_300x250.jpg"></a> {{ end }}
|
||||
{{end}}
|
||||
{{end}}
|
||||
|
|
|
@ -30,6 +30,11 @@ Templates.Add("torrents.item", function(torrent) {
|
|||
var languages = ""
|
||||
var colspan = (torrent.comments.length == 0 ? ` colspan="2"` : "" )
|
||||
var commentTd = ((torrent.comments.length > 0) ? `<td class="tr-cs home-td" title="`+torrent.comments.length + ` {{T("comments")}}` +`"><a href="/view/` + torrent.id + `#comments">` + torrent.comments.length + `</a></td>` : "")
|
||||
|
||||
var stats = ["-", "-", "-"]
|
||||
if(torrent.seeders != 0 || torrent.leechers != 0 || torrent.completed != 0)
|
||||
stats = [torrent.seeders, torrent.leechers, torrent.completed]
|
||||
|
||||
|
||||
if (torrent.languages[0] != "") {
|
||||
var flagClass = (torrent.languages.length == 1) ? Templates.FlagCode(torrent.languages[0]) : "multiple"
|
||||
|
@ -56,9 +61,9 @@ Templates.Add("torrents.item", function(torrent) {
|
|||
</a>`+ ` <a href="` + torrent.torrent + `" title="{{ T("torrent_file") }}"><div class="icon-floppy"></div></a>` +`
|
||||
</td>
|
||||
<td class="tr-size home-td hide-xs">` + humanFileSize(torrent.filesize) + `</td>
|
||||
<td class="tr-se home-td hide-smol">` + torrent.seeders == 0 ? `-` : torrent.seeders + `</td>
|
||||
<td class="tr-le home-td hide-smol">` + torrent.leechers == 0 ? `-` : torrent.leechers + `</td>
|
||||
<td class="tr-dl home-td hide-xs">` + torrent.completed == 0 ? `-` : torrent.completed + `</td>
|
||||
<td class="tr-se home-td hide-smol">` + stats[0] + `</td>
|
||||
<td class="tr-le home-td hide-smol">` + stats[1] + `</td>
|
||||
<td class="tr-dl home-td hide-xs">` + stats[2] + `</td>
|
||||
<td class="tr-date home-td date-short hide-xs">` + torrent.date + `</td>
|
||||
</tr>`;
|
||||
});
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
<a href="https://nyoo.moe/">Nyaa - https://nyoo.moe/ (Mirror)</a><br />
|
||||
<a href="https://sukebei.nyoo.moe/">Sukebei - https://sukebei.nyoo.moe/ (Mirror)</a><br />
|
||||
<a href="https://nyaa.pt/">Nyaa - https://nyaa.pt/ (Mirror)</a><br />
|
||||
<a href="https://sukebei.nyaa.pt/">Sukebei - https://sukebei.nyaa.pt/ (Mirror)</a>
|
||||
<a href="https://sukebei.nyaa.pt/">Sukebei - https://sukebei.nyaa.pt/ (Mirror)</a><br />
|
||||
<a href="https://dpzz6tjaqbl3ttba.onion/">Nyaa - dpzz6tjaqbl3ttba.onion (Mirror)</a><br />
|
||||
<a href="https://34knbgrnvicofdgz.onion/">Sukebei - 34knbgrnvicofdgz.onion (Mirror)</a><br />
|
||||
|
||||
|
|
Référencer dans un nouveau ticket