diff options
author | ubq323 <ubq323> | 2021-05-22 15:12:30 +0000 |
---|---|---|
committer | ubq323 <ubq323> | 2021-05-22 15:12:30 +0000 |
commit | eb298f0c63eb6ac5547a6a7a0086e5e086ad5abc (patch) | |
tree | 4384e1036841a1b051832bffbee0ffb8a3b6cb8d /apioforum/templates/view_thread.html | |
parent | 76120509b4ff409c6642b837be95ebc72c529d4b (diff) |
thread view, also fix file extensions
Diffstat (limited to 'apioforum/templates/view_thread.html')
-rw-r--r-- | apioforum/templates/view_thread.html | 18 |
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 %} |