Commit 0713ed62 authored by RJC's avatar RJC

modified html template for ForumPostListView

parent bc94332b
...@@ -3,12 +3,29 @@ ...@@ -3,12 +3,29 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>Forum Post List</title> <title>Forum Post List</title>
<h1>Forum Post List</h1>
</head> </head>
<ul> <ul>
{% for forumpost in object_list %} {% for fp in forumposts %}
<li>{{forumpost.title}}</li> <li><b style="font-size: 30px">{{fp.title}}</b> by <b style="font-size: large">{{fp.author.first_name}} {{fp.author.last_name}}</b> posted <b>{{fp.pub_datetime}}</b>
<p>
{{fp.body}}
</p>
{{fp.replies_set.all}}
<ul>
{% for reply in fp.reply.all %}
<li> Reply by <b>{{reply.author.first_name}} {{reply.author.last_name}}</b> posted <b>{{reply.pub_datetime}}</b>
<p>
{{reply.body}}
</p>
</li>
{%empty%}
<li> No Replies yet.</li>
{% endfor %}
</ul>
</li>
{%empty%} {%empty%}
<li>No forumposts yet.</li> <li>No Forum Posts yet.</li>
{%endfor%} {%endfor%}
</ul> </ul>
</html> </html>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment