2017-06-28 13:42:38 +02:00
{{ extends "layouts/index_admin" }}
2017-07-24 07:03:43 +02:00
{{block title()}}{{ T("reports_list") }}{{end}}
2017-06-28 13:42:38 +02:00
{{ block content_body()}}
< div class = "results box" >
2017-07-24 07:03:43 +02:00
< h1 > {{ T("reports_list") }}< / h1 >
2017-10-29 05:01:45 +01:00
< table class = "torrent-report-table" >
2017-07-24 07:03:43 +02:00
< thead class = "torrent-info" >
< tr >
< th class = "tr-name" > {{ T("name") }}< / th >
< th class = "tr-actions" > {{ T("username") }}< / th >
< th class = "tr-actions" > {{ T("reason") }}< / th >
2017-10-29 05:01:45 +01:00
< th class = "td-report-message" > {{ T("message") }}< / th >
2017-07-24 07:03:43 +02:00
< th class = "tr-actions" > {{ T("actions") }}< / th >
< / tr >
< / thead >
< tbody >
{{range Models}}
< tr >
< td class = "tr-name home-td" >
< a href = "/view/{{ .Torrent.ID }}" > {{ .Torrent.Name }}< / a >
< a href = "/mod/torrent?id={{ .Torrent.ID}}" class = "form-input btn-blue float-right" > {{ T("edit")}}< / a >
< / td >
< td class = "tr-size home-td" > {{.User.Username}}< / td >
< td class = "tr-actions home-td" > {{ getReportDescription(.Description, T) }}< / td >
2017-10-29 05:01:45 +01:00
< td class = "td-report-message home-td" > {{.Message}}< / td >
2017-07-24 07:03:43 +02:00
< td class = "tr-actions home-td" >
2017-10-12 21:13:03 +02:00
< form method = "POST" action = "/mod/torrent/delete" >
< input type = "hidden" name = "id" value = "{{ .Torrent }}" >
2017-10-31 00:47:11 +01:00
< button type = "submit" class = "form-input btn-red" onclick = "if (!confirm('{{ T(" are_you_sure " ) } } ' ) ) return false ; " > < i class = "icon-trash" > < / i > {{ T("delete_torrent") }}< / button >
2017-10-12 21:13:03 +02:00
< / form >
< form method = "POST" action = "/mod/report/delete" >
< input type = "hidden" name = "id" value = "{{ .ID }}" >
< button type = "submit" class = "form-input btn-red" > < i class = "icon-attention" > < / i > {{ T("delete_report") }}< / button >
< / form >
2017-07-24 07:03:43 +02:00
< / td >
< / tr >
{{end}}
< / tbody >
< / table >
2017-10-31 06:24:30 +01:00
< hr / >
< form method = "POST" action = "/mod/report/delete?all" >
< button type = "submit" class = "form-input btn-red" style = "margin-bottom: 5px;" > < i class = "icon-attention" > < / i > {{ T("delete_all_reports") }}< / button >
< / form >
2017-06-28 13:42:38 +02:00
< / div >
{{end}}