~gitpocket/gitpocket

8
3d96ce330082c415c2dffeac16226dcb80858e67
mainfeed-discovery
gitpocket/web/templates/report.tmpl -rw-r--r--715 bytes ViewLogBlameView rawPermalink ca96986a2b feat(moderation): add reports, account blocks and hourly thread limits 23 hours ago
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
{{define "content"}}
{{$d := .Data}}
<div class="panel narrow">
<h3>Report {{$d.Noun}}</h3>
{{if $d.Sent}}<p>Thanks, the report about <code>{{$d.Target}}</code> went to the admins.</p><p><a href="/">Back to the front page</a></p>{{else}}
<form method="post" action="/report" class="stack">
<input type="hidden" name="kind" value="{{$d.Kind}}"><input type="hidden" name="target" value="{{$d.Target}}">
<p class="muted">Reporting <code>{{$d.Target}}</code>. Only admins see this.</p>
<label>What is wrong <textarea name="reason" rows="6" maxlength="2000" required autofocus>{{$d.Reason}}</textarea></label>
<div class="actions"><button class="btn primary">Send report ▸</button></div>
</form>{{end}}
</div>
{{end}}