Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_group 18
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
Rac Gerard Elizaga
widget_group 18
Commits
5fa74c32
Commit
5fa74c32
authored
May 18, 2022
by
Maso Crisostomo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed announcements and forum date format
parent
4e5cfc65
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
4 additions
and
3 deletions
+4
-3
views.cpython-38.pyc
...t_group_18/announcements/__pycache__/views.cpython-38.pyc
+0
-0
index.html
...group_18/announcements/templates/announcements/index.html
+1
-1
views.py
widget_group_18/announcements/views.py
+1
-0
forum.html
widget_group_18/forum/templates/forum.html
+1
-1
post_details.html
widget_group_18/forum/templates/post_details.html
+1
-1
No files found.
widget_group_18/announcements/__pycache__/views.cpython-38.pyc
View file @
5fa74c32
No preview for this file type
widget_group_18/announcements/templates/announcements/index.html
View file @
5fa74c32
...
...
@@ -5,7 +5,7 @@
{% if announcements_list %}
<ul>
{% for a in announcements_list %}
<li><a
href=
"{% url 'announcements:details' a.id %}"
>
{{ a.announcement_title }} by {{ a.author.first_name }} {{ a.author.last_name }} dated {{ a.pub_date|date:"
SHORT_DATE_FORMAT
" }}
</a></li>
<li><a
href=
"{% url 'announcements:details' a.id %}"
>
{{ a.announcement_title }} by {{ a.author.first_name }} {{ a.author.last_name }} dated {{ a.pub_date|date:"
d/m/Y
" }}
</a></li>
{% endfor %}
</ul>
{% else %}
...
...
widget_group_18/announcements/views.py
View file @
5fa74c32
...
...
@@ -26,6 +26,7 @@ def details(request, announcement_id):
# def reactions(request, announcement_id):
# response = "This are the reactions to announcement # %s."
# return HttpResponse(response % announcement_id)
...
...
widget_group_18/forum/templates/forum.html
View file @
5fa74c32
...
...
@@ -8,7 +8,7 @@
{% if posts_list %}
<ul>
{% for i in posts_list %}
<li><a
href=
"posts/{{ i.id }}/details/"
>
{{ i.post_title}} by {{ i.author.first_name }} {{ i.author.last_name }} dated {{ i.pub_date|date:"
SHORT_DATE_FORMAT
" }}
</a></li>
<li><a
href=
"posts/{{ i.id }}/details/"
>
{{ i.post_title}} by {{ i.author.first_name }} {{ i.author.last_name }} dated {{ i.pub_date|date:"
d/m/Y
" }}
</a></li>
{% endfor %}
</ul>
{% else %}
...
...
widget_group_18/forum/templates/post_details.html
View file @
5fa74c32
...
...
@@ -9,7 +9,7 @@
{% if replies_list %}
<ul>
{% for i in replies_list %}
<li>
{{ i.author.first_name }} {{ i.author.last_name }}, {{ i.pub_date|date:"
SHORT_DATE_FORMAT
" }}: {{ i.reply_body }}
</li>
<li>
{{ i.author.first_name }} {{ i.author.last_name }}, {{ i.pub_date|date:"
d/m/Y
" }}: {{ i.reply_body }}
</li>
{% endfor %}
</ul>
{% else %}
...
...
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