summaryrefslogtreecommitdiffhomepage
path: root/apioforum/templates/view_thread.html
diff options
context:
space:
mode:
Diffstat (limited to 'apioforum/templates/view_thread.html')
-rw-r--r--apioforum/templates/view_thread.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/apioforum/templates/view_thread.html b/apioforum/templates/view_thread.html
new file mode 100644
index 0000000..34faeea
--- /dev/null
+++ b/apioforum/templates/view_thread.html
@@ -0,0 +1,18 @@
+{% extends 'base.html' %}
+{% block header %}
+<h1>{%block title %}thread{% endblock %}</h1>
+{% endblock %}
+
+{%block content%}
+<h2>{{thread.title}}</h2>
+<p>by {{thread.creator}}</p>
+<dl>
+{% for post in posts %}
+<dt>{{post.author}}</dt>
+<dd>{{post.content}}</dd>
+{% else %}
+<dt>there weren't</dt>
+<dd>any posts</dd>
+{% endfor %}
+</dl>
+{% endblock %}