42 lines
1.5 KiB
HTML
42 lines
1.5 KiB
HTML
{{define "content"}}
|
||
{{with .Form}}
|
||
{{if .Ancestors}}
|
||
<section id="ancestors" class="muted">
|
||
{{range .Ancestors}}{{template "entry" .}}{{end}}
|
||
</section>
|
||
{{end}}
|
||
|
||
<section id="focus">
|
||
{{template "entry" .Entry}}
|
||
</section>
|
||
|
||
{{if .CanPost}}
|
||
<section id="compose">
|
||
<form method="post" action="/entry/create" enctype="multipart/form-data">
|
||
<input type="hidden" name="reply_to" value="{{.Entry.PID}}">
|
||
{{with $.Err}}<p class="msg">{{.Msg}}</p>{{end}}
|
||
<label for="content">Antworten</label>
|
||
<textarea id="content" name="content" rows="4" maxlength="1000"
|
||
placeholder="Deine Antwort">{{.Compose.Content}}</textarea>
|
||
<label for="file">Bild <span class="muted">(optional)</span></label>
|
||
<input id="file" name="file" type="file" accept="image/*">
|
||
{{if .Compose.HadFile}}
|
||
<p class="msg">Dein Bild musst du erneut auswählen – Browser können
|
||
Dateifelder aus Sicherheitsgründen nicht vorbelegen.</p>
|
||
{{end}}
|
||
<button type="submit">Antwort abschicken</button>
|
||
</form>
|
||
</section>
|
||
{{else if .IsTOR}}
|
||
<p class="muted">Über TOR ist das Schreiben von Beiträgen derzeit nicht
|
||
möglich. Lesen, Abstimmen und Melden funktionieren.</p>
|
||
{{end}}
|
||
|
||
<section id="replies">
|
||
{{range .Replies}}{{template "entry" .}}{{else}}
|
||
<p class="muted">Noch keine Antworten.</p>
|
||
{{end}}
|
||
</section>
|
||
{{end}}
|
||
{{end}}
|