Skip to content
Merged

V3 #7

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ __pypackages__/
# Celery stuff
celerybeat-schedule
celerybeat.pid
celerybeat-schedule*

# SageMath parsed files
*.sage.py
Expand Down
Binary file removed celerybeat-schedule-shm
Binary file not shown.
Binary file removed celerybeat-schedule-wal
Binary file not shown.
17 changes: 13 additions & 4 deletions core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,20 @@ def BSLView(request):
raise Http404("File not found.")


class CalendarView(TemplateView):
class CalendarView(V3Mixin, TemplateView):
template_name = "calendar.html"
v3_template_name = "v3/calendar.html"

def get(self, request, *args, **kwargs):
context = {"boost_calendar": settings.BOOST_CALENDAR}
return self.render_to_response(context)
def get_context_data(self, **kwargs):
ctx = super().get_context_data(**kwargs)
ctx["boost_calendar"] = settings.BOOST_CALENDAR
return ctx

def get_v3_context_data(self, **kwargs):
ctx = super().get_v3_context_data(**kwargs)
print(self.request.headers)
ctx["timezone"] = "America/Chicago"
return ctx


class BoostDevelopmentView(CalendarView):
Expand Down Expand Up @@ -1143,6 +1151,7 @@ def get_context_data(self, **kwargs):
"primary_button_label": "Primary Button",
"secondary_button_url": "www.example.com",
"secondary_button_label": "Secondary Button",
"image": "/static/img/v3/demo_page/Calendar.png",
}

context["demo_cards_carousel_cards"] = [
Expand Down
Loading
Loading