Commit ebbfd61c authored by Isaiah Flores's avatar Isaiah Flores

New CSS styles for post templates + fixed timezone to PH time

parent 49ca8f22
{% block content %} {% block content %}
<h3>{{post.post_title}}</h3> <head>
<p>by {{post.author_name}}, {{post.pub_date|date:"d/m/Y"}}<p> <style>
{{post.post_body}} 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> <ul>
{% for reply in post.replies.all %} {% for reply in post.replies.all %}
<li> <li>
{{reply.author_name}}, {{reply.pub_date|date:"d/m/Y"}}:<br> <h5>{{reply.author_name}}, {{reply.pub_date|date:"d/m/Y"}}:<br>
{{reply.reply_body}} {{reply.reply_body}}</h5>
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>
<a href="{% url 'Forum' %}">Back to Forum</a> <a href="{% url 'Forum' %}">Back to Forum</a>
</body>
{% endblock %} {% endblock %}
\ No newline at end of file
{% block content %} {% 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"> <form action="{% url 'Add' %}" method="POST">
{% csrf_token %} {% csrf_token %}
{{ form.as_p }} {{ form.as_p }}
<input type="submit" value="Save Post"> <input type="submit" value="Save Post">
</form> </form>
<a href="{% url 'Forum' %}">Back to Forum</a> <p><a href="{% url 'Forum' %}">Back to Forum</a></p>
</body>
{% endblock %} {% endblock %}
\ No newline at end of file
{% block content %} {% block content %}
{% block title %}<h1>Welcome to Widget’s Forum!</h1>{% endblock %} <head>
<hr> <style>
<h3>Forum posts:</h3> 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 %} {% if post_list %}
<ul> <ul>
{% for post in post_list %} {% for post in post_list %}
...@@ -13,6 +24,8 @@ ...@@ -13,6 +24,8 @@
{% else %} {% else %}
<p>There are no posts.</p> <p>There are no posts.</p>
{% endif %} {% endif %}
<hr> </h3>
<p><a href="{% url 'Add' %}">New Forum Post</a></p> </body>
<hr>
<p><a href="{% url 'Add' %}">New Forum Post</a></p>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -112,7 +112,7 @@ AUTH_PASSWORD_VALIDATORS = [ ...@@ -112,7 +112,7 @@ AUTH_PASSWORD_VALIDATORS = [
LANGUAGE_CODE = 'en-us' LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC' TIME_ZONE = 'Asia/Manila'
USE_I18N = True USE_I18N = True
......
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