aboutsummaryrefslogtreecommitdiff
path: root/templates/thread.tmpl
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2019-12-13 18:08:26 +0000
committerr <r@freesoftwareextremist.com>2019-12-13 18:26:24 +0000
commit5e4da01c3ae3ae2e870faba9085d9d9213c01c29 (patch)
tree39d6f1e76b901549f194ddbac3c6cb82e0abd019 /templates/thread.tmpl
downloadbloat-5e4da01c3ae3ae2e870faba9085d9d9213c01c29.tar.gz
bloat-5e4da01c3ae3ae2e870faba9085d9d9213c01c29.zip
Initial commit
Diffstat (limited to 'templates/thread.tmpl')
-rw-r--r--templates/thread.tmpl24
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"}}