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}}
|