Parent
dafc485d4d
révision
7bda7d1538
2 fichiers modifiés avec 3 ajouts et 3 suppressions
|
@ -92,7 +92,7 @@ func init() {
|
|||
Router.HandleFunc("/mod/reassign", WrapModHandler(TorrentPostReassignModPanel)).Name("mod_treassign").Methods("POST")
|
||||
|
||||
//reporting a torrent
|
||||
Router.HandleFunc("/report/{id}", ReportTorrentHandler).Methods("POST").Name("post_comment")
|
||||
Router.HandleFunc("/report/{id}", ReportTorrentHandler).Methods("POST").Name("torrent_report")
|
||||
|
||||
Router.PathPrefix("/captcha").Methods("GET").HandlerFunc(captcha.ServeFiles)
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
{{ end }}
|
||||
<br />
|
||||
<h4 style="display:inline-block">
|
||||
{{ call $.T "uploaded_by" }} <a href="{{$.URL.Parse (printf "/user/%d/-" .UploaderID) }}">{{.UploaderName}}</a>
|
||||
{{ call $.T "uploaded_by" }} <a href="{{ genRoute "user_profile" "id" (print .Uploader.ID) "username" .Uploader.Username) }}">{{.UploaderName}}</a>
|
||||
</h4>
|
||||
{{if ne .OldUploader ""}}
|
||||
<span>({{.OldUploader}})</span>
|
||||
|
@ -208,7 +208,7 @@
|
|||
</div>
|
||||
<div class="modal-body">
|
||||
<b>{{ call $.T "report_type" }}:</b>
|
||||
<form method="post" action="/report/{{.Torrent.ID}}">
|
||||
<form method="post" action="{{ genRoute "torrent_report" "id" .Torrent.ID}}">
|
||||
<input type="radio" name="report_type" value="illegal" id="illegal" required> <label for="illegal">{{ call $.T "illegal_content" }}</label><br />
|
||||
<input type="radio" name="report_type" value="spam" id="spam" required> <label for="spam">{{ call $.T "spam_garbage" }}</label><br />
|
||||
<input type="radio" name="report_type" value="wrongcat" id="wrongcat" required> <label for="wrongcat">{{ call $.T "wrong_category" }}</label><br />
|
||||
|
|
Référencer dans un nouveau ticket