18 lignes
748 o
HTML
18 lignes
748 o
HTML
{{define "title"}}Torrents List{{end}}
|
|
{{define "contclass"}}cont-view{{end}}
|
|
{{define "content"}}
|
|
<div class="blockBody">
|
|
<table class="table">
|
|
{{ 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}}
|