Albirew/nyaa-pantsu
Albirew
/
nyaa-pantsu
Archivé
1
0
Bifurcation 0

Update view.jet.html

Cette révision appartient à :
kilo 2017-11-08 11:59:44 +01:00 révisé par GitHub
Parent 1d90dcf7e0
révision 9ffb5f1cde
Signature inconnue de Forgejo
ID de la clé GPG: 4AEE18F83AFDEB23
1 fichiers modifiés avec 9 ajouts et 1 suppressions

Voir le fichier

@ -188,7 +188,13 @@
<p>{{ T("no_description") }}</p>
{{end}}
<input type="checkbox" id="show-filelist" {{if len(Torrent.FileList) < 4 && len(Torrent.FileList) > 0}}checked{{end}}/>
<label class="torrent-hr filelist-control{{if len(Torrent.FileList) == 0}} hidden{{end}}" for="show-filelist">{{ T("files")}}</label>
<label class="torrent-hr filelist-control{{if len(Torrent.FileList) == 0}} hidden{{end}}" for="show-filelist">
{{ if len(Torrent.FileList) == 0 }}
<a href="/files/{{Torrent.ID}}">{{ T("files")}}</a>
{{else}}
{{ T("files")}}
{{end}}
</label>
<div class="torrent-info-box{{if len(Torrent.FileList) == 0}} hidden{{end}}" id="filelist">
<table class="table-filelist">
<thead>
@ -340,6 +346,8 @@ Modal.Init({
var FileListContainer = document.querySelector("#filelist tbody"),
FileListLabel = document.getElementsByClassName("filelist-control")[0],
FileListOldHtml = FileListContainer.innerHTML
FileListLabel.innerHTML = FileListLabel.innerText
FileListLabel.addEventListener("click", function (e) {
FileListContainer.innerHTML = "<tr class='tr-filelist'><td>{{T("loading_file_list")}}</td></tr>"