aboutsummaryrefslogtreecommitdiff
path: root/templates/timeline.tmpl
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2019-12-21 08:36:44 +0000
committerr <r@freesoftwareextremist.com>2019-12-21 08:38:42 +0000
commit39c57a6b653a269668f459414d295e812f3628a8 (patch)
tree3b00e5ec638f592699d31562675b1b1e2d5da8c7 /templates/timeline.tmpl
parentdf875381d4e2c9a0bd283acc3592cde6562f5e5e (diff)
downloadbloat-39c57a6b653a269668f459414d295e812f3628a8.tar.gz
bloat-39c57a6b653a269668f459414d295e812f3628a8.zip
Use a single form for new posts and replies
Diffstat (limited to 'templates/timeline.tmpl')
-rw-r--r--templates/timeline.tmpl12
1 files changed, 2 insertions, 10 deletions
diff --git a/templates/timeline.tmpl b/templates/timeline.tmpl
index fe426de..09717c1 100644
--- a/templates/timeline.tmpl
+++ b/templates/timeline.tmpl
@@ -2,16 +2,8 @@
{{template "navigation.tmpl" .NavbarData}}
<div class="page-title"> Timeline </div>
-<form class="timeline-post-form" action="/post" method="POST" enctype="multipart/form-data">
- <label for="post-content"> New Post </label>
- <div class="post-content-container">
- <textarea id="post-content" name="content" class="post-content" cols="50" rows="5"></textarea>
- </div>
- <div class="post-attachment-div">
- Attachments <input id="post-file-picker" type="file" name="attachments" multiple>
- </div>
- <button type="submit"> Post </button>
-</form>
+
+{{template "postform.tmpl" }}
{{range .Statuses}}
{{template "status.tmpl" .}}