summaryrefslogtreecommitdiff
path: root/templates/view_thread.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/view_thread.html')
-rw-r--r--templates/view_thread.html28
1 files changed, 28 insertions, 0 deletions
diff --git a/templates/view_thread.html b/templates/view_thread.html
new file mode 100644
index 0000000..877feb8
--- /dev/null
+++ b/templates/view_thread.html
@@ -0,0 +1,28 @@
+{% extends 'base.html' %}
+
+{% block content %}
+
+<h2>{{ thread.title }}</h2>
+<p>{{ thread.created_at.strftime('%Y-%m-%d %H:%M') }}</p>
+{% for post in pdx %}
+<div class="container">
+ <div class="userbox">
+ <p> Poster: <a href="{{url_for('details', light=post.authour.name)}}"> {{post.authour.name}} </a>
+ </p>
+ <p> Date: {{post.created_at.strftime('%Y-%m-%d %H:%M')}} </p>
+ </div>
+ <div class="post-content">
+ <p>
+ <h4> {{post.title}} </h4>
+ </p>
+ {{ post.content|markdown|safe }}
+ </div>
+ <br> <br>
+</div>
+{% endfor %}
+<div class="post-actions">
+ <a href="{{ url_for('create', reply=thread.id)}}"> Reply</a> ~
+ <a href="{{ url_for('index') }}">Back to posts</a>
+</div>
+
+{% endblock %} \ No newline at end of file