aboutsummaryrefslogtreecommitdiff
path: root/templates/thread.tmpl
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2019-12-18 22:14:02 +0000
committerr <r@freesoftwareextremist.com>2019-12-18 22:14:02 +0000
commitd7fc7cf2f5e9c11a401ee34ed498bca762c72b79 (patch)
treece0558257067eaf737c6fbcef1de8fef78c127fd /templates/thread.tmpl
parente3565202903a051b19aa76b81a0b5f9f3fdea996 (diff)
downloadbloat-d7fc7cf2f5e9c11a401ee34ed498bca762c72b79.tar.gz
bloat-d7fc7cf2f5e9c11a401ee34ed498bca762c72b79.zip
Add reply links on thread page
Diffstat (limited to 'templates/thread.tmpl')
-rw-r--r--templates/thread.tmpl8
1 files changed, 2 insertions, 6 deletions
diff --git a/templates/thread.tmpl b/templates/thread.tmpl
index 29d702b..e36c5ea 100644
--- a/templates/thread.tmpl
+++ b/templates/thread.tmpl
@@ -2,12 +2,10 @@
{{template "navigation.tmpl" .NavbarData}}
<div class="page-title"> Thread </div>
-{{range .Context.Ancestors}}
+{{range .Statuses}}
{{template "status.tmpl" .}}
-{{end}}
-{{template "status.tmpl" .Status}}
-{{if .PostReply}}
+{{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 {{.Status.Account.DisplayName}} </label>
@@ -20,8 +18,6 @@
</form>
{{end}}
-{{range .Context.Descendants}}
-{{template "status.tmpl" .}}
{{end}}
{{template "footer.tmpl"}}