Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_aguandhischipmunks
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
Adrian Lance Damalerio
midterm_aguandhischipmunks
Commits
494b8f4a
Commit
494b8f4a
authored
Mar 06, 2023
by
Jan Ericsson Ong Ang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added <br> in views & changed index name in urls
parent
fa37cb12
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
urls.py
widget_aguandhischipmunks/calendar_app/urls.py
+1
-1
views.py
widget_aguandhischipmunks/calendar_app/views.py
+2
-2
db.sqlite3
widget_aguandhischipmunks/db.sqlite3
+0
-0
No files found.
widget_aguandhischipmunks/calendar_app/urls.py
View file @
494b8f4a
...
@@ -4,5 +4,5 @@ from . import views
...
@@ -4,5 +4,5 @@ from . import views
# url for homepage
# url for homepage
urlpatterns
=
[
urlpatterns
=
[
path
(
''
,
views
.
index
,
name
=
'i
ndex'
),
path
(
''
,
views
.
calendarIndex
,
name
=
'calendarI
ndex'
),
]
]
\ No newline at end of file
widget_aguandhischipmunks/calendar_app/views.py
View file @
494b8f4a
...
@@ -9,10 +9,10 @@ def calendarIndex(request):
...
@@ -9,10 +9,10 @@ def calendarIndex(request):
for
event
in
events
:
for
event
in
events
:
date_and_time
=
"Date and Time: "
+
event
.
target_datetime
.
strftime
(
"
%
m/
%
d/
%
Y,
%
I:
%
M
%
p"
)
+
"<br>"
date_and_time
=
"Date and Time: "
+
event
.
target_datetime
.
strftime
(
"
%
m/
%
d/
%
Y,
%
I:
%
M
%
p"
)
+
"<br>"
event_activity
=
"Activity: "
+
event
.
activity
+
"<br>"
event_activity
=
"Activity: "
+
event
.
activity
+
"<br>"
estimated_duration
=
"Estimated Hours: "
+
event
.
estimated_hours
+
"<br>"
estimated_duration
=
"Estimated Hours: "
+
str
(
event
.
estimated_hours
)
+
"<br>"
course_section
=
"Course/Section: "
+
event
.
course
.
code
+
" "
+
event
.
course
.
title
+
"-"
+
event
.
course
.
section
+
"<br>"
course_section
=
"Course/Section: "
+
event
.
course
.
code
+
" "
+
event
.
course
.
title
+
"-"
+
event
.
course
.
section
+
"<br>"
event_mode
=
"Mode: "
+
event
.
location
.
mode
+
"<br>"
event_mode
=
"Mode: "
+
event
.
location
.
mode
+
"<br>"
event_venue
=
"Venue: "
+
event
.
location
.
venue
+
"<br>"
event_venue
=
"Venue: "
+
event
.
location
.
venue
+
"<br>
<br>
"
output_view
=
output_view
+
date_and_time
+
event_activity
+
estimated_duration
+
course_section
+
event_mode
+
event_venue
output_view
=
output_view
+
date_and_time
+
event_activity
+
estimated_duration
+
course_section
+
event_mode
+
event_venue
...
...
widget_aguandhischipmunks/db.sqlite3
View file @
494b8f4a
No preview for this file type
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