bloat/templates/thread.tmpl
2019-12-14 20:19:02 +00:00

27 lines
825 B
Cheetah

{{template "header.tmpl"}}
<div class="page-title"> Thread </div>
{{template "navigation.tmpl"}}
{{range .Context.Ancestors}}
{{template "status.tmpl" .}}
{{end}}
{{template "status.tmpl" .Status}}
{{if .PostReply}}
<form class="timeline-post-form" action="/post" method="POST" enctype="multipart/form-data">
<input type="hidden" name="reply_to_id" value="{{.ReplyToID}}" />
<label for="post-content"> Reply to {{.Status.Account.DisplayName}} </label>
<br/>
<textarea id="post-content" name="content" class="post-content" cols="50" rows="5">{{.ReplyContent}}</textarea>
<br/>
Attachments <input id="post-file-picker" type="file" name="attachments" multiple>
<br/>
<button type="submit"> Post </button>
</form>
{{end}}
{{range .Context.Descendants}}
{{template "status.tmpl" .}}
{{end}}
{{template "footer.tmpl"}}