Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0

Merge pull request #318 from kipukun/master

Fixing mod page (WIP)
Cette révision appartient à :
keo 2017-05-11 02:02:27 +03:00 révisé par GitHub
révision ea96f0f041
7 fichiers modifiés avec 58 ajouts et 12 suppressions

Voir le fichier

@ -1,6 +1,12 @@
{{define "title"}}Comments List{{end}}
{{define "content"}}
<table class="table">
<tr>
<th class="col-xs-10">Content</th>
<th class="col-xs-1">User</th>
<th class="col-xs-1">Action</th>
</tr>
{{ 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>

Voir le fichier

@ -2,8 +2,12 @@
{{define "content"}}
<h3 id="torrents">Last Torrents</h3>
<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}}
@ -13,9 +17,17 @@
<li><a href="{{ genRoute "mod_tlist" }}">More</a></li>
</ul>
</nav>
<hr />
<h3 id="torrents">Last Torrents Report</h3>
<table class="table">
{{ range .TorrentReports}}
<tr>
<th class="col-xs-9">Torrent Name</th>
<th class="col-xs-1">User</th>
<th class="col-xs-1">Reason</th>
<th class="col-xs-1">Action</th>
</tr>
<tr><td><a href="{{ genRoute "mod_tedit" }}?id={{.Torrent.ID}}">{{ .Torrent.Name }}</a></td><td>{{.User.Username}}</td><td>{{.Description}}</td>
<td><a href="{{ genRoute "mod_trdelete" }}?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>
@ -26,8 +38,14 @@
<li><a href="{{ genRoute "mod_trlist" }}">More</a></li>
</ul>
</nav>
<hr />
<h3 id="users">Last Users</h3>
<table class="table">
<tr>
<th class="col-xs-11">Username</th>
<th class="col-xs-1">Action</th>
</tr>
{{ range .Users}}
<tr>
@ -41,8 +59,15 @@
<li><a href="{{ genRoute "mod_ulist" }}">More </a></li>
</ul>
</nav>
<hr />
<h3 id="comments">Last Comments</h3>
<table class="table">
<tr>
<th class="col-xs-10">Content</th>
<th class="col-xs-1">User</th>
<th class="col-xs-1">Action</th>
</tr>
{{ 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>

Voir le fichier

@ -1,6 +1,14 @@
{{define "title"}}Torrents Report{{end}}
{{define "content"}}
<table class="table">
<tr>
<th class="col-xs-8">Torrent Name</th>
<th class="col-xs-1">User</th>
<th class="col-xs-1">Reason</th>
<th class="col-xs-1">Action</th>
<th class="col-xs-1">Action</th>
</tr>
{{ range .TorrentReports}}
<tr>
<td><a href="{{ genRoute "mod_tedit"}}?id={{.Torrent.ID}}">{{.Torrent.Name}}</a></td>

Voir le fichier

@ -1,6 +1,14 @@
{{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>
@ -12,4 +20,5 @@
{{ genNav .Navigation .URL 5 }}
</ul>
</nav>
</div>
{{end}}

Voir le fichier

@ -1,6 +1,11 @@
{{define "title"}}Users List{{end}}
{{define "content"}}
<table class="table">
<tr>
<th class="col-xs-11">Username</th>
<th class="col-xs-1">Action</th>
</tr>
{{ range .Users}}
<tr>

Voir le fichier

@ -50,18 +50,11 @@
<li><a href="{{ genRoute "mod_trlist"}}">{{T "Torrent Reports"}}</a></li>
</ul>
{{block "badge_user" .}}{{end}}
<form class="navbar-form navbar-right" role="search" action="/mod/torrents" method="get">
<div class="form-group">
{{block "search_common" .}}{{end}}
</div>
<div class="form-group">
{{block "search_button" .}}{{end}}
</div>
</form>
</div>
</div>
</nav>
<div style="padding-top: 10rem"></div>
<div class="container" id="container">
{{block "content" .}}{{end}}

Voir le fichier

@ -32,7 +32,7 @@
</a>
{{ if HasAdmin $.User}}
<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>
<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></a>
{{end}}
@ -92,7 +92,7 @@
<textarea name="comment" class="form-control" rows="5"></textarea>
</div>
{{with .Captcha}} {{block "captcha" .}}{{end}} {{end}}
<input type="submit" value="{{T " submit "}}">
<button type="submit" class="btn btn-success">{{T " submit "}}</button>
</form>
</div>
</div>