-
-

Journal {% if month or year %}{% if month %} from {{month|date:"F"}} {{month|date:"Y"}}{%else%} from {{year|date:"Y"}}{%endif%}{%endif%}

-
- +{% block breadcrumbs %} + +{% endblock %} +{% block primary %}
+

Journal {% if month or year %}{% if month %} from {{month|date:"F"}} {{month|date:"Y"}}{%else%} from {{year|date:"Y"}}{%endif%}{%endif%}

{% for object in object_list %} +
+ +

{{object.title|safe|smartypants|widont}}

+ + +

+ + {% if object.location.country_name == "United States" %}{{object.location.name|smartypants|safe}}, {{object.location.state_name}}, U.S.{%else%}{{object.location.name|smartypants|safe}}, {{object.location.country_name}}{%endif%} + – + + {{object.dek|safe}} + +

+
{% endfor %}
{% endblock %} 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() -- cgit v1.2.3-70-g09d2