Commit 494b8f4a authored by Jan Ericsson Ong Ang's avatar Jan Ericsson Ong Ang

added <br> in views & changed index name in urls

parent fa37cb12
...@@ -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='index'), path('', views.calendarIndex, name='calendarIndex'),
] ]
\ No newline at end of file
...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment