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
3e962317
Commit
3e962317
authored
May 24, 2022
by
Jonathan Talbot
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'main' of
https://gitlab.discs.ateneo.edu/JohnnyTalbot/widget_group3
parents
8560fa1b
ebbfd61c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
12 deletions
+50
-12
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
No files found.
widget_group3/forum/templates/forum/post_detail.html
View file @
3e962317
{% 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
:
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>
<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
widget_group3/forum/templates/forum/post_form.html
View file @
3e962317
{% 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
widget_group3/forum/templates/forum/post_list.html
View file @
3e962317
{% 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
:
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 %}
{% 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
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