Commit 3e962317 authored by Jonathan Talbot's avatar Jonathan Talbot
parents 8560fa1b ebbfd61c
{% block content %}
<h3>{{post.post_title}}</h3>
<p>by {{post.author_name}}, {{post.pub_date|date:"d/m/Y"}}<p>
{{post.post_body}}
<head>
<style>
body {background-color: F6F6F2; font-family: arial;}
h1 {color: 388087; font-size: 40px;}
h2 {color: 388087; font-size: 30px;}
h3 {color: 388087; font-size: 20px;}
h4 {color: 336699; font-size: 15px;}
h5 {color: 006666; font-size: 15px;}
p {color: 6FB3B8; font-size: 20px;}
</style>
</head>
<body>
<h2>{{post.post_title}}</h2>
<h3>by {{post.author_name}}, {{post.pub_date|date:"d/m/Y"}}</h3>
<h4>{{post.post_body}}</h4>
<ul>
{% for reply in post.replies.all %}
<li>
{{reply.author_name}}, {{reply.pub_date|date:"d/m/Y"}}:<br>
{{reply.reply_body}}
<h5>{{reply.author_name}}, {{reply.pub_date|date:"d/m/Y"}}:<br>
{{reply.reply_body}}</h5>
</li>
{% endfor %}
</ul>
<a href="{% url 'Forum' %}">Back to Forum</a>
</body>
{% endblock %}
\ No newline at end of file
{% block content %}
<h3>New Forum Post</h3>
<head>
<style>
font-family: arial;
body {background-color: F6F6F2; font-family: arial;}
h1 {color: 388087; font-size: 40px; }
h2 {color: 388087; font-size: 30px;}
h3 {color: 388087; font-size: 20px;}
p {color: 003366; font-size: 20px;}
</style>
</head>
<body>
<h2>New Forum Post</h2>
<form action="{% url 'Add' %}" method="POST">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Save Post">
</form>
<a href="{% url 'Forum' %}">Back to Forum</a>
<p><a href="{% url 'Forum' %}">Back to Forum</a></p>
</body>
{% endblock %}
\ No newline at end of file
{% block content %}
{% block title %}<h1>Welcome to Widget’s Forum!</h1>{% endblock %}
<hr>
<h3>Forum posts:</h3>
<head>
<style>
body {background-color: F6F6F2; font-family: arial;}
h1 {color: 388087; font-size: 40px;}
h2 {color: 388087; font-size: 30px;}
h3 {color: 388087; font-size: 20px;}
p {color: 6FB3B8; font-size: 20px;}
</style>
</head>
<body>
{% block title %}<h1>Welcome to Widget’s Forum!</h1>{% endblock %}
<hr>
<h2>Forum posts:</h2>
<h3>
{% if post_list %}
<ul>
{% for post in post_list %}
......@@ -13,6 +24,8 @@
{% else %}
<p>There are no posts.</p>
{% endif %}
<hr>
<p><a href="{% url 'Add' %}">New Forum Post</a></p>
</h3>
</body>
<hr>
<p><a href="{% url 'Add' %}">New Forum Post</a></p>
{% endblock %}
\ 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