e8774abf21
When in a user page and clicked on more torrents, show a list navigable of the user torrent On that list, we can make advance search (categories, order, ...) Moderation search reimplemented Clicking on user (id) in the torrent list redirect to the list of the user torrents Ability to search within the user torrents
24 lignes
880 o
HTML
24 lignes
880 o
HTML
{{define "title"}}Torrents List{{end}}
|
|
{{define "contclass"}}cont-view{{end}}
|
|
{{define "content"}}
|
|
<div class="blockBody">
|
|
<table class="table">
|
|
<tr>
|
|
<th class="col-xs-10">Torrent Name</th>
|
|
<th class="col-xs-1">Uploader</th>
|
|
<th class="col-xs-1">Action</th>
|
|
</tr>
|
|
|
|
{{ range .Torrents}}
|
|
|
|
<tr><td><a href="{{ genRoute "mod_tedit" }}?id={{.ID}}">{{ .Name }}</a></td><td><a href="{{ genRoute "mod_tlist" }}?userID={{.UploaderID}}">{{ .UploaderID }}</a></td>
|
|
<td><a href="{{ genRoute "mod_tdelete" }}?id={{ .ID }}" class="btn btn-danger btn-lg" onclick="if (!confirm('Are you sure?')) return false;"><i class="glyphicon glyphicon-trash"></i>{{ T "delete" }}</a></td></tr>
|
|
{{end}}
|
|
</table>
|
|
<nav class="torrentNav" aria-label="Page navigation">
|
|
<ul class="pagination">
|
|
{{ genNav .Navigation .URL 5 }}
|
|
</ul>
|
|
</nav>
|
|
</div>
|
|
{{end}}
|