2017-05-10 17:37:49 +02:00
{{define "title"}}Moderation Overview{{end}}
2017-05-10 06:43:53 +02:00
{{define "content"}}
2017-05-10 16:43:50 +02:00
< h3 id = "torrents" > Last Torrents< / h3 >
2017-05-10 18:47:37 +02:00
< table class = "table" >
2017-05-11 00:51:22 +02:00
< tr >
< th class = "col-xs-10" > Torrent Name< / th >
< th class = "col-xs-1" > Uploader< / th >
< th class = "col-xs-1" > Action< / th >
< / tr >
2017-05-10 15:08:38 +02:00
{{ 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 17:37:49 +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 > {{ T "delete" }}< / a > < / td > < / tr >
2017-05-10 15:08:38 +02:00
{{end}}
< / table >
2017-05-10 16:43:50 +02:00
< nav class = "torrentNav" aria-label = "Page navigation" >
< ul class = "pagination" >
2017-05-10 17:47:28 +02:00
< li > < a href = "{{ genRoute " mod_tlist " } } " > More< / a > < / li >
2017-05-10 16:43:50 +02:00
< / ul >
< / nav >
2017-05-11 00:51:22 +02:00
< hr / >
2017-05-10 17:37:49 +02:00
< h3 id = "torrents" > Last Torrents Report< / h3 >
2017-05-10 18:47:37 +02:00
< table class = "table" >
2017-05-10 17:37:49 +02:00
{{ range .TorrentReports}}
2017-05-11 00:51:22 +02:00
< 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 >
2017-05-10 17:37:49 +02:00
< tr > < td > < a href = "{{ genRoute " mod_tedit " } } ? id = {{.Torrent.ID}}" > {{ .Torrent.Name }}< / a > < / td > < td > {{.User.Username}}< / td > < td > {{.Description}}< / td >
2017-05-10 22:05:56 +02:00
< 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 >
2017-05-10 17:37:49 +02:00
{{end}}
< / table >
< nav class = "torrentNav" aria-label = "Page navigation" >
< ul class = "pagination" >
2017-05-10 17:47:28 +02:00
< li > < a href = "{{ genRoute " mod_trlist " } } " > More< / a > < / li >
2017-05-10 17:37:49 +02:00
< / ul >
< / nav >
2017-05-11 00:51:22 +02:00
< hr / >
2017-05-10 16:43:50 +02:00
< h3 id = "users" > Last Users< / h3 >
2017-05-10 18:47:37 +02:00
< table class = "table" >
2017-05-11 00:51:22 +02:00
< tr >
< th class = "col-xs-11" > Username< / th >
< th class = "col-xs-1" > Action< / th >
< / tr >
2017-05-10 15:08:38 +02:00
{{ 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 >
2017-05-10 17:37:49 +02:00
< 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 > {{ T "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" >
2017-05-10 17:47:28 +02:00
< li > < a href = "{{ genRoute " mod_ulist " } } " > More < / a > < / li >
2017-05-10 16:43:50 +02:00
< / ul >
< / nav >
2017-05-11 00:51:22 +02:00
< hr / >
2017-05-10 16:43:50 +02:00
< h3 id = "comments" > Last Comments< / h3 >
2017-05-10 18:47:37 +02:00
< table class = "table" >
2017-05-11 00:51:22 +02:00
< tr >
< th class = "col-xs-10" > Content< / th >
< th class = "col-xs-1" > User< / th >
< th class = "col-xs-1" > Action< / th >
< / tr >
2017-05-10 15:08:38 +02:00
{{ 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 >
2017-05-10 17:37:49 +02:00
< 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 > {{ T "delete" }}< / a > < / td > < / tr >
2017-05-10 15:08:38 +02:00
{{end}}
< / table >
2017-05-10 16:43:50 +02:00
< nav class = "torrentNav" aria-label = "Page navigation" >
< ul class = "pagination" >
2017-05-10 19:17:07 +02:00
< li > < a href = "{{ genRoute " mod_clist " } } " > More< / a > < / li >
2017-05-10 16:43:50 +02:00
< / ul >
< / nav >
2017-05-10 19:17:07 +02:00
{{end}}