Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0
Ce dépôt a été archivé le 2022-05-07. Vous pouvez voir ses fichiers ou le cloner, mais pas ouvrir de ticket ou de demandes d'ajout, ni soumettre de changements.
nyaa-pantsu/templates/_user_list_torrents.html

65 lignes
2,7 Kio
HTML
Brut Vue normale Historique

{{define "profile_content"}}
{{with .UserProfile}}
2017-05-09 04:12:32 +02:00
{{ if gt (len .Torrents) 0 }}
<div class="table-responsive">
<table class="table custom-table-hover">
<tr>
<th>{{call $.T "category"}}</th>
<th>{{call $.T "name"}}</th>
<th>{{call $.T "date"}}</th>
<th>{{call $.T "size"}}</th>
<th>{{call $.T "links"}}</th>
</tr>
2017-05-14 05:56:07 +02:00
{{ range $i, $t := .Torrents }}
{{ if lt $i 16 }}
{{ with $t.ToJSON }}
<tr class="torrent-info
{{if eq .Status 2}}remake{{end}}
{{if eq .Status 3}}trusted{{end}}
{{if eq .Status 4}}aplus{{end}}">
<!-- forced width because the <td> gets bigger randomly otherwise -->
<td style="width:80px">
<a href="{{$.URL.Parse (printf "/search?c=%s_%s" .Category .SubCategory) }}">
2017-05-18 14:35:38 +02:00
{{ if Sukebei }}
2017-05-22 20:18:29 +02:00
<img src="{{$.URL.Parse (printf "/img/torrents/sukebei/%s%s.png" .Category .SubCategory) }}" title="{{ call $.T (CategoryName .Category .SubCategory) }}">
2017-05-18 14:35:38 +02:00
{{ else }}
2017-05-22 20:18:29 +02:00
<img src="{{$.URL.Parse (printf "/img/torrents/%s.png" .SubCategory) }}" title="{{ call $.T (CategoryName .Category .SubCategory) }}">
2017-05-18 14:35:38 +02:00
{{ end}}
</a>
</td>
<td class="name">
<a href="{{genRoute "view_torrent" "id" .ID }}">
{{.Name}}
</a>
</td>
<td class="nowrap date-short">{{.Date}}</td>
<td class="nowrap">
{{ fileSize .Filesize $.T }}
</td>
<td>
<a href="{{.Magnet}}" title="{{ call $.T "magnet_link" }}">
Frontend rewrite (DONE) (#723) * Remove Bootstrap and Jquery, and create basic nav * More improvements to navbar, as well as work on _badgemenu * Complete navbar HTML, obviously it still looks horrendous * Change layout on torrent table, using grids. * Remove Bootstrap and Jquery, and create basic nav * More improvements to navbar, as well as work on _badgemenu * Complete navbar HTML, obviously it still looks horrendous * Change layout on torrent table, using grids. * HOLY FUCK INDEX IS /DONE/ * DO UPLOAD PAGE, DELETE OLD SHITTY CSS * Complete login page * Remove Bootstrap and Jquery, and create basic nav * More improvements to navbar, as well as work on _badgemenu * Complete navbar HTML, obviously it still looks horrendous * Change layout on torrent table, using grids. * Remove Bootstrap and Jquery, and create basic nav * More improvements to navbar, as well as work on _badgemenu * Complete navbar HTML, obviously it still looks horrendous * HOLY FUCK INDEX IS /DONE/ * DO UPLOAD PAGE, DELETE OLD SHITTY CSS * Complete login page * Begin work on profile page * fucking git, man * Damn, that looks sexy * Complete login and register pages, include very minimal grid system, and delete all of view template * Do view page! * Finish view even more * Fix dates and filesizes in torrent table * Improve comment/captcha input * Actually add magnet and torrent buttons * Add open-iconic instead of fontawesome * Improve user side-panel * Rename Category_* to CategoryName * Beginning to finish up * Implement themes and add basic mobile support to front page * Fix some slight color errors * Fix captcha on dark * magnet and torrent links on view
2017-05-24 06:20:51 +02:00
<span class="oi" data-glyph="cloud-download"></span>
</a>
{{if ne .TorrentLink ""}}
<a href="{{.TorrentLink}}" title="{{ call $.T "torrent_file" }}">
Frontend rewrite (DONE) (#723) * Remove Bootstrap and Jquery, and create basic nav * More improvements to navbar, as well as work on _badgemenu * Complete navbar HTML, obviously it still looks horrendous * Change layout on torrent table, using grids. * Remove Bootstrap and Jquery, and create basic nav * More improvements to navbar, as well as work on _badgemenu * Complete navbar HTML, obviously it still looks horrendous * Change layout on torrent table, using grids. * HOLY FUCK INDEX IS /DONE/ * DO UPLOAD PAGE, DELETE OLD SHITTY CSS * Complete login page * Remove Bootstrap and Jquery, and create basic nav * More improvements to navbar, as well as work on _badgemenu * Complete navbar HTML, obviously it still looks horrendous * Change layout on torrent table, using grids. * Remove Bootstrap and Jquery, and create basic nav * More improvements to navbar, as well as work on _badgemenu * Complete navbar HTML, obviously it still looks horrendous * HOLY FUCK INDEX IS /DONE/ * DO UPLOAD PAGE, DELETE OLD SHITTY CSS * Complete login page * Begin work on profile page * fucking git, man * Damn, that looks sexy * Complete login and register pages, include very minimal grid system, and delete all of view template * Do view page! * Finish view even more * Fix dates and filesizes in torrent table * Improve comment/captcha input * Actually add magnet and torrent buttons * Add open-iconic instead of fontawesome * Improve user side-panel * Rename Category_* to CategoryName * Beginning to finish up * Implement themes and add basic mobile support to front page * Fix some slight color errors * Fix captcha on dark * magnet and torrent links on view
2017-05-24 06:20:51 +02:00
<span class="oi" data-glyph="data-transfer-download"></span>
</a>
{{end}}
</td>
</tr>
{{end}}
2017-05-09 07:21:14 +02:00
{{end}}
2017-05-14 05:56:07 +02:00
{{end}}
</table>
<nav class="torrentNav" aria-label="Page navigation">
<ul class="pagination">
<li><a href="{{ genRoute "search" }}?userID={{ .ID }}" aria-label="Next"><span class="glyphicon glyphicon-add"></span> {{ call $.T "see_more_torrents_from" .Username }}</a></li>
</ul>
</nav>
</div>
2017-05-09 03:53:31 +02:00
{{else}}
<h2 style="text-align: center;">{{ call $.T "no_torrents_uploaded" }}</h2>
2017-05-09 03:53:31 +02:00
{{end}}
{{end}}
{{end}}