about summary refs log tree commit diff
path: root/templates/thread.html
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2018-04-08T18·20+0200
committerVincent Ambo <tazjin@gmail.com>2018-04-08T18·20+0200
commitef5f7af89c8dfadca3d2515e4fa1ce71a4b778b9 (patch)
tree418d688d361ca8c726c457ca42294dbfe017b570 /templates/thread.html
parentcf636077e65ae4c8598fd32aa9b233b87070875e (diff)
feat(templates): Add shitty little response form in thread view
Diffstat (limited to 'templates/thread.html')
-rw-r--r--templates/thread.html14
1 files changed, 13 insertions, 1 deletions
diff --git a/templates/thread.html b/templates/thread.html
index e841668bfe41..e26d4bcc613e 100644
--- a/templates/thread.html
+++ b/templates/thread.html
@@ -8,7 +8,19 @@
 
     <p>{{ thread.body }}<br><i>Posted at {{ thread.posted }}</i></p>
     {% for post in posts -%}
-      <li>{{ post.body }}<br><i>Posted at {{ post.posted }}</i></p>
+    <li>{{ post.body }}<br><i>Posted at {{ post.posted }}</i></li>
     {%- endfor %}
+
+    <hr>
+    <form action="/thread/reply" method="post">
+      <input type="hidden" id="thread_id" name="thread_id" value="{{ thread.id }}">
+      <div>
+        <label for="body">Content:</label>
+        <textarea id="body" name="body"></textarea>
+      </div>
+      <div>
+        <input type="submit" value="Reply">
+      </div>
+    </form>
   </body>
 </html>