aboutsummaryrefslogtreecommitdiff
path: root/templates/thread.tmpl
blob: d4c88de59963995a5129cd6757370618d60bf8ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{{template "header.tmpl"}}
{{template "navigation.tmpl" .NavbarData}}
<div class="page-title"> Thread </div>

{{range .Statuses}}
{{template "status.tmpl" .}}

{{if eq .ID $.ReplyToID}}
<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 {{.Account.DisplayName}} </label>
	<div class="post-form-content-container">
		<textarea id="post-content" name="content" class="post-content" cols="50" rows="5">{{$.ReplyContent}}</textarea>
	</div>
	<div>
		Attachments <input id="post-file-picker" type="file" name="attachments" multiple>
	</div>
	<button type="submit"> Post </button>
</form>
{{end}}

{{end}}

{{template "footer.tmpl"}}