diff options
Diffstat (limited to 'app/posts/views/jrnl_views.py')
-rw-r--r-- | app/posts/views/jrnl_views.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/posts/views/jrnl_views.py b/app/posts/views/jrnl_views.py index bb50f6f..8652e1d 100644 --- a/app/posts/views/jrnl_views.py +++ b/app/posts/views/jrnl_views.py @@ -74,6 +74,11 @@ class JrnlYearArchiveView(YearArchiveView): allow_future = True template_name = "posts/jrnl_date.html" + def get_context_data(self, **kwargs): + context = super(JrnlYearArchiveView, self).get_context_data(**kwargs) + context['breadcrumbs'] = ['jrnl', self.kwargs['year']] + context['crumb_url'] = reverse('jrnl:list') + return context class JrnlMonthArchiveView(MonthArchiveView): queryset = Post.objects.filter(status__exact=1).filter(post_type=PostType.JRNL).select_related() |