Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_jupert
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
Joseph Izon
widget_jupert
Commits
3ab3aba1
Commit
3ab3aba1
authored
May 25, 2022
by
Ronan Phillippe B. Artuz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add the base.html, detail.html and index.html files
parent
ad5df383
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
55 additions
and
0 deletions
+55
-0
base.html
widget_jupert/forum/templates/forum/base.html
+22
-0
details.html
widget_jupert/forum/templates/forum/details.html
+18
-0
index.html
widget_jupert/forum/templates/forum/index.html
+15
-0
No files found.
widget_jupert/forum/templates/forum/base.html
0 → 100644
View file @
3ab3aba1
{% load static %}
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<link
rel=
"stylesheet"
type=
"text/css"
href =
{%
static
'
forum
/
style
.
css
'
%}
>
<title>
Project Jupert
</title>
</head>
<body>
{% block content %}
{% endblock %}
</body>
</html>
\ No newline at end of file
widget_jupert/forum/templates/forum/details.html
0 → 100644
View file @
3ab3aba1
{% extends "forum/base.html" %}
{% block content %}
<h1>
{{ posts.post_title }}
</h1>
<h3>
{{ posts.author.first_name }} {{ posts.author.last_name }}, {{ posts.pub_date|date:"d/m/Y" }}
</h3>
<p>
{{ posts.post_body }}
</p>
<p>
{% for reply in reply_list %}
{% if reply.author.last_name == posts.author.last_name %}
<li>
{{ reply.author.first_name }} {{ reply.author.last_name }}, {{ reply.pub_date|date:"d/m/Y" }}: {{reply.reply_body}}
</li>
{% endif %}
{% endfor %}
</p>
<img
src=
{{posts.image.url}}
>
{% endblock %}
\ No newline at end of file
widget_jupert/forum/templates/forum/index.html
0 → 100644
View file @
3ab3aba1
{% extends "forum/base.html" %}
{% block content %}
<h1>
Welcome to Widget's Forum
</h1>
<h3>
Forum posts:
</h2>
{% if post_list %}
<ul>
{% for post in post_list %}
<li><a
href =
"{% url 'forum:details' post.id %}"
>
<b>
{{ post.post_title }}
</b>
by {{ post.author.first_name }} {{ post.author.last_name }} dated {{ post.pub_date|date:"d/m/Y" }}
</a></li>
{% endfor %}
</ul>
{% else %}
<p>
No posts are available.
</p>
{% endif %}
{% 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