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/torrent_report.jet.html
kilo 30570e2fb9
Fix torrent deletion from report list (#1705)
* Update torrent_report.jet.html

* change of color for "delete report" button
2017-11-03 09:09:04 +01:00

45 lignes
1,9 Kio
HTML

{{ extends "layouts/index_admin" }}
{{block title()}}{{ T("reports_list") }}{{end}}
{{ block content_body()}}
<div class="results box">
<h1>{{ T("reports_list") }}</h1>
<table class="torrent-report-table">
<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>
<th class="td-report-message">{{ T("message") }}</th>
<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>
<td class="td-report-message home-td">{{.Message}}</td>
<td class="tr-actions home-td">
<form method="POST" action="/mod/torrent/delete">
<input type="hidden" name="id" value="{{ .Torrent.ID }}">
<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>
</form>
<form method="POST" action="/mod/report/delete">
<input type="hidden" name="id" value="{{ .ID }}">
<button type="submit" class="form-input btn-blue"><i class="icon-attention"></i> {{ T("delete_report") }}</button>
</form>
</td>
</tr>
{{end}}
</tbody>
</table>
<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>
</div>
{{end}}