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/admin/panelindex.html

43 lignes
1,8 Kio
HTML
Brut Vue normale Historique

{{define "content"}}
2017-05-10 16:43:50 +02:00
<h3 id="torrents">Last Torrents</h3>
2017-05-10 15:08:38 +02:00
<table>
{{ range .Torrents}}
2017-05-10 16:43:50 +02:00
<tr><td><a href="{{ genRoute "mod_tedit" }}?id={{.ID}}">{{ .Name }}</a></td><td><a href="{{ genRoute "mod_tlist" }}?userid={{.UploaderID}}">{{ .UploaderID }}</a></td>
2017-05-10 15:08:38 +02:00
<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>Delete</a></td></tr>
{{end}}
</table>
2017-05-10 16:43:50 +02:00
<nav class="torrentNav" aria-label="Page navigation">
<ul class="pagination">
<a href="{{ genRoute "mod_tlist" }}">More</a>
</ul>
</nav>
<h3 id="users">Last Users</h3>
2017-05-10 15:08:38 +02:00
<table>
{{ range .Users}}
<tr>
2017-05-10 16:43:50 +02:00
<td><a href="{{ genRoute "user_profile" "id" (print .ID) "username" .Username }}?edit">{{ .Username }}</a></td>
<td><a href="{{ genRoute "user_profile" "id" (print .ID) "username" .Username }}?delete" class="btn btn-danger btn-lg" onclick="if (!confirm('Are you sure?')) return false;"><i class="glyphicon glyphicon-trash"></i>Delete</a></td>
2017-05-10 15:08:38 +02:00
</tr>
{{end}}
</table>
2017-05-10 16:43:50 +02:00
<nav class="torrentNav" aria-label="Page navigation">
<ul class="pagination">
<a href="{{ genRoute "mod_ulist" }}">More </a>
</ul>
</nav>
<h3 id="comments">Last Comments</h3>
2017-05-10 15:08:38 +02:00
<table>
{{ range .Comments}}
<tr><td><a href="{{ genRoute "mod_cedit" }}?id={{.ID}}">{{ .Content }}</a></td><td><a href="{{ genRoute "mod_cedit" }}?id={{.ID}}">{{ .User.Username }}</a></td>
<td><a href="{{ genRoute "mod_cdelete" }}?id={{ .ID }}" class="btn btn-danger btn-lg" onclick="if (!confirm('Are you sure?')) return false;"><i class="glyphicon glyphicon-trash"></i>Delete</a></td></tr>
{{end}}
</table>
2017-05-10 16:43:50 +02:00
<nav class="torrentNav" aria-label="Page navigation">
<ul class="pagination">
<a href="{{ genRoute "mod_ulist" }}">More</a>
</ul>
</nav>
{{end}}