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/site/torrents/report.jet.html
kilo 8ec3c2a743
Add possibility of reporting without JS, add report reason for NSFW content, Add possibility of getting a torrent by Hash in refine (#1709)
* Add possibility of reporting without JS

* Add report message input and new report reason to /report/:id page

* add new report reason here too

* Update en-us.all.json

* Update CHANGELOG.md

* only show if not sukebei

* ditto

* fix label for value

* ditto

* fix overly big report message column

* Update main.css

* Update search.jet.html

* Add possibility of getting a torrent by Hash in refine

* Update search.go

* Update search.go

* fix template_test

* ditto

* fix Sprintf wrongly using a Token

* rollback that

* Update callback.go

* remove line that creates error

* fix travis
2017-11-04 06:42:36 +01:00

46 lignes
2 Kio
HTML

{{ extends "layouts/index_site" }}
{{ import "layouts/partials/helpers/csrf" }}
{{ import "layouts/partials/helpers/captcha" }}
{{block title()}}{{ T("report_torrent_number", Form.ID) }}{{end}}
{{block content_body()}}
<div class="box">
<div class="user-form">
<h1>{{ T("report_torrent_number", Form.ID) }}</h1>
<form role="form" method="POST">
{{ yield csrf_field() }}
<div style="text-align:left;margin-bottom: 8px;">
<h3>{{ T("report_type") }}</h3>
<input type="radio" name="report_type" value="illegal_content" id="illegal" required/>
<label for="illegal">{{ T("illegal_content") }}</label>
<br />
<input type="radio" name="report_type" value="spam_garbage" id="spam" required/>
<label for="spam">{{ T("spam_garbage") }}</label>
<br />
<input type="radio" name="report_type" value="wrong_category" id="wrongcat" required/>
<label for="wrongcat">{{ T("wrong_category") }}</label>
<br />
<input type="radio" name="report_type" value="duplicate_deprecated" id="dup" required/>
<label for="dup">{{ T("duplicate_deprecated") }}</label>
<br />
{{ if !Sukebei()}}
<input type="radio" name="report_type" value="nsfw_content" id="nsfw_content" required/>
<label for="nsfw_content">{{ T("nsfw_content") }}</label>
<br />
{{end}}
<input type="radio" name="report_type" value="other" id="other" required/>
<label for="other">{{ T("other") }}</label>
<br />
<h4>{{ T("report_message") }}</h4>
<input type="text" class="form-input" name="report_message" placeholder="(Optional, 60 characters max)" maxlength="60">
</div>
{{if User.ID == 0}}
<div class="comment-captcha">
{{yield captcha(captchaid=Form.CaptchaID)}}
</div>
{{end}}
<input id="confirm_changes" class="form-input up-input btn-green" name="submit_report" type="submit" value="{{ T("yes")}}"/>
</form>
</div>
</div>
{{end}}