Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_someone here is possessed by an owl
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
Laetitia de Castro
widget_someone here is possessed by an owl
Commits
3ed9fd6f
Commit
3ed9fd6f
authored
May 25, 2022
by
Rurik Serzo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added forum page layout styles
parent
ce0f0758
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
10 deletions
+24
-10
index.html
forum/templates/forum/index.html
+3
-3
post_detail.html
forum/templates/forum/post_detail.html
+7
-7
forum.css
static/forum.css
+14
-0
No files found.
forum/templates/forum/index.html
View file @
3ed9fd6f
...
...
@@ -8,9 +8,9 @@
{% endblock %}
{% block content %}
<h1
class=
"forum-heading"
>
Welcome to Widget's Forum
</h1>
<h2
class=
"forum-subheading"
>
Forum posts:
</h2>
<ul
class=
"post-list"
>
<h1>
Welcome to Widget's Forum
</h1>
<h2>
Forum posts:
</h2>
<ul>
{% for post in posts %}
<li>
<a
href=
"/forum/{{ post.id }}/details"
>
...
...
forum/templates/forum/post_detail.html
View file @
3ed9fd6f
...
...
@@ -8,8 +8,8 @@
{% endblock %}
{% block content %}
<h1
class=
"
forum-heading
"
>
{{ post.post_title }}
</h1>
<h2
class=
"forum-subtitle"
>
by {{ post.author.first_name }} {{ post.author.last_name }} dated {{ post.pub_date|date:'d/m/Y' }}
</h2>
<h1
class=
"
post-title
"
>
{{ post.post_title }}
</h1>
<h2>
by {{ post.author.first_name }} {{ post.author.last_name }} dated {{ post.pub_date|date:'d/m/Y' }}
</h2>
<p>
{{ post.post_body }}
...
...
@@ -17,16 +17,16 @@
{% load static %}
{% if post.id == 1 %}
<img
src=
"{% static 'post1.jpg' %}"
class=
"post-image"
alt=
"Leni Robredo"
>
<img
src=
"{% static 'post1.jpg' %}"
alt=
"Leni Robredo"
>
{% elif post.id == 2 %}
<img
src=
"{% static 'post2.jpg' %}"
class=
"post-image"
alt=
"Lady Gaga MET camp"
>
<img
src=
"{% static 'post2.jpg' %}"
alt=
"Lady Gaga MET camp"
>
{% else %}
<img
src=
"{% static 'post3.jpg' %}"
class=
"post-image"
alt=
"Bruno Mars Grammys 2022"
>
<img
src=
"{% static 'post3.jpg' %}"
alt=
"Bruno Mars Grammys 2022"
>
{% endif %}
<div
class=
"forum-reactions"
>
<div>
{% for reply in post.replies.all %}
<p>
{{ reply.author.first_name }} {{ reply.author.last_name }}, {{ reply.pub_date|date:'d/m/Y' }}
: {{ reply.reply_body }}
</p>
<p>
<span
class=
"reply-author"
>
{{ reply.author.first_name }} {{ reply.author.last_name }}, {{ reply.pub_date|date:'d/m/Y' }}
</span>
: {{ reply.reply_body }}
</p>
{% endfor %}
</div>
{% endblock %}
\ No newline at end of file
static/forum.css
0 → 100644
View file @
3ed9fd6f
@import
url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;700&display=swap')
;
*
{
font-family
:
'Oswald'
,
sans-serif
;
background-color
:
#F4CCE1
;
}
.reply-author
{
font-weight
:
700
;
}
.post-title
{
text-align
:
center
;
}
\ 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