Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_group3
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jonathan Talbot
widget_group3
Commits
ebbfd61c
Commit
ebbfd61c
authored
May 23, 2022
by
Isaiah Flores
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New CSS styles for post templates + fixed timezone to PH time
parent
49ca8f22
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
51 additions
and
13 deletions
+51
-13
post_detail.html
widget_group3/forum/templates/forum/post_detail.html
+18
-5
post_form.html
widget_group3/forum/templates/forum/post_form.html
+14
-2
post_list.html
widget_group3/forum/templates/forum/post_list.html
+18
-5
settings.py
widget_group3/widget_group3/settings.py
+1
-1
No files found.
widget_group3/forum/templates/forum/post_detail.html
View file @
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
:
6
FB3B8
;
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
widget_group3/forum/templates/forum/post_form.html
View file @
ebbfd61c
{% 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
widget_group3/forum/templates/forum/post_list.html
View file @
ebbfd61c
{% 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
:
6
FB3B8
;
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
widget_group3/widget_group3/settings.py
View file @
ebbfd61c
...
...
@@ -112,7 +112,7 @@ AUTH_PASSWORD_VALIDATORS = [
LANGUAGE_CODE
=
'en-us'
TIME_ZONE
=
'
UTC
'
TIME_ZONE
=
'
Asia/Manila
'
USE_I18N
=
True
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment