diff options
Diffstat (limited to 'templates/thread.tmpl')
-rw-r--r-- | templates/thread.tmpl | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/templates/thread.tmpl b/templates/thread.tmpl new file mode 100644 index 0000000..4d6aad0 --- /dev/null +++ b/templates/thread.tmpl @@ -0,0 +1,24 @@ +{{template "header.tmpl"}} +<h1> THREAD </h1> + +{{range .Context.Ancestors}} +{{template "status.tmpl" .}} +{{end}} + +{{template "status.tmpl" .Status}} +{{if .PostReply}} +<form class="timeline-post-form" action="/post" method="POST"> + <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"></textarea> + <br/> + <button type="submit"> Post </button> +</form> +{{end}} + +{{range .Context.Descendants}} +{{template "status.tmpl" .}} +{{end}} + +{{template "footer.tmpl"}} |