Allowed linking to specific views/dates on the calendar - closes #153

This commit is contained in:
David Taylor
2016-02-29 20:35:53 +00:00
parent 73517ed443
commit 1681ab8fee
3 changed files with 44 additions and 1 deletions

View File

@@ -37,6 +37,12 @@ class RigboardIndex(generic.TemplateView):
class WebCalendar(generic.TemplateView):
template_name = 'RIGS/calendar.html'
def get_context_data(self, **kwargs):
context = super(WebCalendar, self).get_context_data(**kwargs)
context['view'] = kwargs.get('view','')
context['date'] = kwargs.get('date','')
return context
class EventDetail(generic.DetailView):
model = models.Event