Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_group17
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
Vaughn Nephi Fajardo
widget_group17
Commits
b3eb273a
Commit
b3eb273a
authored
May 17, 2022
by
Miguel Luis D. Bandelaria
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: modified index template to include the button to add new forum post
parent
5a7a0601
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
index.html
widget_group_17/forum/templates/forum/index.html
+2
-0
No files found.
widget_group_17/forum/templates/forum/index.html
View file @
b3eb273a
...
@@ -9,8 +9,10 @@
...
@@ -9,8 +9,10 @@
{% for post in posts_list %}
{% for post in posts_list %}
<li><a
href=
"{% url 'forum:detail' post.id %}"
>
{{ post.post_title }}
</a>
by {{ post.author.first_name }} {{ post.author.last_name}} dated {{ post.pub_date|date:"SHORT_DATE_FORMAT" }}
</li>
<li><a
href=
"{% url 'forum:detail' post.id %}"
>
{{ post.post_title }}
</a>
by {{ post.author.first_name }} {{ post.author.last_name}} dated {{ post.pub_date|date:"SHORT_DATE_FORMAT" }}
</li>
{% endfor %}
{% endfor %}
<button
onclick=
"location.href = '/posts/add'"
>
New Forum Post
</button>
</ul>
</ul>
{% else %}
{% else %}
<p>
No posts are available.
</p>
<p>
No posts are available.
</p>
<button
onclick=
"location.href = '/posts/add'"
>
New Forum Post
</button>
{% endif %}
{% endif %}
{% 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