38e8ee3a7a
* Comments count number * New Modpanel fix Fixes #755 (@ilikecats) modpanel tables have margins modpanel delete buttons are red some coloring for buttons reassign form looks better reassign form textarea have rows="20" cols="40" "save changes" btn green report reasons are now translated in modpanel delete is a real button on modpanel users page * moved getReportDescription
28 lignes
1,5 Kio
HTML
28 lignes
1,5 Kio
HTML
{{define "title"}}{{ call $.T "reports_list" }}{{end}}
|
|
{{define "content"}}
|
|
<div class="results box">
|
|
<h1>{{ call $.T "reports_list" }}</h1>
|
|
<table class="table">
|
|
<thead class="torrent-info">
|
|
<tr>
|
|
<th class="tr-name">{{ call $.T "name" }}</th>
|
|
<th class="tr-size">{{ call $.T "username" }}</th>
|
|
<th class="tr-actions">{{ call $.T "reason" }}</th>
|
|
<th class="tr-actions">{{ call $.T "actions" }}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{range .Models}}
|
|
<tr>
|
|
<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>
|
|
<td class="tr-size home-td">{{.User.Username}}</td>
|
|
<td class="tr-actions home-td">{{ getReportDescription .Description $.T }}</td>
|
|
<td class="tr-actions home-td">
|
|
<a href="{{ genRoute "mod_tdelete" }}?id={{ print .Torrent.ID }}" class="form-input btn-red" onclick="if (!confirm('{{ call $.T "are_you_sure" }}')) return false;"><i class="trash-icon"></i>{{ call $.T "delete_torrent" }}</a><br>
|
|
<a href="{{ genRoute "mod_trdelete" }}?id={{ print .ID }}" class="form-input btn-red"><i class="trash-icon"></i>{{ call $.T "delete_report" }}</a></td>
|
|
</tr>
|
|
{{end}}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{{end}}
|