2017-06-02 20:10:36 +02:00
{{define "title"}}{{ call $.T "moderation_overview" }}{{end}}
2017-05-10 06:43:53 +02:00
{{define "content"}}
2017-06-02 20:10:36 +02:00
< div class = "results box" >
< h3 id = "torrents" > {{ call $.T "last_torrents" }}< / h3 >
2017-05-10 18:47:37 +02:00
< table class = "table" >
2017-06-02 20:10:36 +02:00
< thead class = "torrent-info" >
< tr >
< th class = "tr-name" > {{ call $.T "name" }}< / th >
2017-06-20 15:15:26 +02:00
< th class = "tr-actions" > {{ call $.T "username" }}< / th >
< th class = "tr-actions" > {{ call $.T "actions" }}< / th >
2017-06-02 20:10:36 +02:00
< / tr >
< / thead >
< tbody >
{{range .Torrents}}
< tr >
2017-06-04 02:28:33 +02:00
< td class = "tr-name home-td" > < a href = "{{ genViewTorrentRoute .ID }}" > {{ .Name }}< / a > < a href = "{{ genRoute " mod_tedit " } } ? id = {{.ID}}" class = "form-input btn-blue float-right" > {{ call $.T "edit" }}< / a > < / td >
2017-06-02 20:10:36 +02:00
< td class = "tr-size home-td" > < a href = "{{ genRoute " mod_tlist " } } ? userID = {{.UploaderID}}" > {{ .UploaderID }}< / a > < / td >
2017-06-16 00:57:52 +02:00
< td class = "tr-size home-td" > < a href = "{{ genRoute " mod_tdelete " } } ? id = {{ . ID } } " class = "form-input btn-red" onclick = "if (!confirm('{{ call $.T " are_you_sure " } } ' ) ) return false ; " > < i class = "icon-trash" > < / i > {{ call $.T "delete" }}< / a > < / td >
2017-06-02 20:10:36 +02:00
< / tr >
{{end}}
< / tbody >
2017-05-10 15:08:38 +02:00
< / table >
2017-06-02 20:10:36 +02:00
< nav class = "adminNav" aria-label = "Page navigation" >
2017-05-10 16:43:50 +02:00
< 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-06-02 20:10:36 +02:00
< h3 id = "torrents" > {{ call $.T "last_reports" }}< / h3 >
2017-05-10 18:47:37 +02:00
< table class = "table" >
2017-06-02 20:10:36 +02:00
< thead class = "torrent-info" >
< tr >
< th class = "tr-name" > {{ call $.T "name" }}< / th >
2017-06-20 15:15:26 +02:00
< th class = "tr-actions" > {{ call $.T "username" }}< / th >
2017-06-04 02:28:33 +02:00
< th class = "tr-actions" > {{ call $.T "reason" }}< / th >
< th class = "tr-actions" > {{ call $.T "actions" }}< / th >
2017-06-02 20:10:36 +02:00
< / tr >
< / thead >
< tbody >
{{range .TorrentReports}}
< tr >
2017-06-04 02:28:33 +02:00
< td class = "tr-name home-td" > < a href = "{{ genRoute " view_torrent " " id " ( print . Torrent . ID ) } } " > {{ .Torrent.Name }}< / a > < a href = "{{ genRoute " mod_tedit " } } ? id = {{ print . Torrent . ID } } " class = "form-input btn-blue float-right" > {{ call $.T "edit" }}< / a > < / td >
2017-06-02 20:10:36 +02:00
< td class = "tr-size home-td" > {{.User.Username}}< / td >
2017-06-04 02:28:33 +02:00
< td class = "tr-actions home-td" > {{ getReportDescription .Description $.T }}< / td >
2017-06-16 00:57:52 +02:00
< td class = "tr-actions home-td" > < a href = "{{ genRoute " mod_trdelete " } } ? id = {{ print . ID } } " class = "form-input btn-red" > < i class = "icon-trash" > < / i > {{ call $.T "delete" }}< / a > < / td >
2017-06-02 20:10:36 +02:00
< / tr >
{{end}}
< / tbody >
2017-05-10 17:37:49 +02:00
< / table >
2017-06-02 20:10:36 +02:00
< nav class = "adminNav" aria-label = "Page navigation" >
2017-05-10 17:37:49 +02:00
< ul class = "pagination" >
2017-06-02 20:10:36 +02:00
< li > < a href = "{{ genRoute " mod_trlist " } } " > {{ call $.T "more" }}< / a > < / li >
2017-05-10 17:37:49 +02:00
< / ul >
< / nav >
2017-05-11 00:51:22 +02:00
< hr / >
2017-06-02 20:10:36 +02:00
< h3 id = "users" > {{ call $.T "last_users" }}< / h3 >
2017-05-10 18:47:37 +02:00
< table class = "table" >
2017-06-02 20:10:36 +02:00
< thead class = "torrent-info" >
< tr >
< th class = "tr-name" > {{ call $.T "username" }}< / th >
2017-06-20 15:15:26 +02:00
< th class = "tr-actions" > {{ call $.T "actions" }}< / th >
2017-06-02 20:10:36 +02:00
< / tr >
< / thead >
< tbody >
{{range .Users}}
< tr >
2017-06-13 20:15:50 +02:00
< td class = "tr-name home-td" > < a href = "{{ genRoute " user_profile_details " " id " ( print . ID ) " username " . Username } } " > {{ .Username }}< / a > < / td >
2017-06-06 16:54:05 +02:00
< td class = "tr-size home-td" > {{if gt .ID 0}}
2017-06-16 00:57:52 +02:00
< a href = "{{ genRoute " user_profile " " id " ( print . ID ) " username " . Username } } ? delete " class = "form-input btn-red" onclick = "if (!confirm('{{ call $.T " are_you_sure " } } ' ) ) return false ; " > < i class = "icon-trash" > < / i > {{ call $.T "delete" }}< / a >
2017-06-06 16:54:05 +02:00
{{end}}< / td >
2017-06-02 20:10:36 +02:00
< / tr >
{{end}}
< / tbody >
2017-05-10 15:08:38 +02:00
< / table >
2017-06-02 20:10:36 +02:00
< nav class = "adminNav" aria-label = "Page navigation" >
2017-05-10 16:43:50 +02:00
< ul class = "pagination" >
2017-06-02 20:10:36 +02:00
< li > < a href = "{{ genRoute " mod_ulist " } } " > {{ call $.T "more" }} < / a > < / li >
2017-05-10 16:43:50 +02:00
< / ul >
< / nav >
2017-05-11 00:51:22 +02:00
< hr / >
2017-06-02 20:10:36 +02:00
< h3 id = "comments" > {{ call $.T "last_comments" }}< / h3 >
2017-05-10 18:47:37 +02:00
< table class = "table" >
2017-06-02 20:10:36 +02:00
< thead class = "torrent-info" >
< tr >
< th class = "tr-name" > {{ call $.T "comments" }}< / th >
2017-06-20 15:15:26 +02:00
< th class = "tr-actions" > {{ call $.T "username" }}< / th >
< th class = "tr-actions" > {{ call $.T "actions" }}< / th >
2017-06-02 20:10:36 +02:00
< / tr >
< / thead >
< tbody >
{{range .Comments}}
< tr >
2017-06-04 02:28:33 +02:00
< td class = "tr-name home-td" > < a href = "{{ genRoute " mod_cedit " } } ? id = {{.ID}}" > {{ .Content }}< / a > < / td >
2017-06-15 04:44:46 +02:00
< td class = "tr-size home-td" > < a href = "{{ genRoute " mod_cedit " } } ? id = {{.ID}}" > {{if .User }}{{ .User.Username }}{{else}}れんちょん{{end}}< / a > < / td >
2017-06-16 00:57:52 +02:00
< td class = "tr-size home-td" > < a href = "{{ genRoute " mod_cdelete " } } ? id = {{ . ID } } " class = "form-input btn-red" onclick = "if (!confirm('{{ call $.T " are_you_sure " } } ' ) ) return false ; " > < i class = "icon-trash" > < / i > {{ call $.T "delete" }}< / a > < / td >
2017-06-02 20:10:36 +02:00
< / tr >
{{end}}
< / tbody >
2017-05-10 15:08:38 +02:00
< / table >
2017-06-02 20:10:36 +02:00
< nav class = "adminNav" aria-label = "Page navigation" >
2017-05-10 16:43:50 +02:00
< ul class = "pagination" >
2017-06-02 20:10:36 +02:00
< li > < a href = "{{ genRoute " mod_clist " } } " > {{ call $.T "more" }}< / a > < / li >
2017-05-10 16:43:50 +02:00
< / ul >
< / nav >
2017-06-02 20:10:36 +02:00
< / div >
2017-05-10 19:17:07 +02:00
{{end}}