From eaa8b13fb802cf2135f91ef108df8875d4ca18b2 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sat, 15 Aug 2020 14:26:39 -0400 Subject: fixed a bug in field notes breadcrumbs --- app/posts/templates/posts/fieldnote_detail.html | 21 ++++++++++++++++++++- app/posts/templates/posts/fieldnote_list.html | 15 ++++++++++++++- app/posts/views/field_note_views.py | 1 + 3 files changed, 35 insertions(+), 2 deletions(-) (limited to 'app/posts') diff --git a/app/posts/templates/posts/fieldnote_detail.html b/app/posts/templates/posts/fieldnote_detail.html index d1c648b..3368c56 100644 --- a/app/posts/templates/posts/fieldnote_detail.html +++ b/app/posts/templates/posts/fieldnote_detail.html @@ -13,7 +13,26 @@ {%endblock%} {% block bodyid %}class="notes--permalin detail" id="archive-{% if month %}{{month|month_number_to_name}}{%endif%}{{year}}"{%endblock%} -{% block breadcrumbs %}{% include "lib/breadcrumbs.html" with breadcrumbs=breadcrumbs %}{% endblock %} +{% block breadcrumbs %} + +{% endblock %} {% block primary %}
diff --git a/app/posts/templates/posts/fieldnote_list.html b/app/posts/templates/posts/fieldnote_list.html index 1cf4f9e..fc15812 100644 --- a/app/posts/templates/posts/fieldnote_list.html +++ b/app/posts/templates/posts/fieldnote_list.html @@ -6,7 +6,20 @@ {% block pagetitle %} Field Notes | luxagraf {% endblock %} {% block metadescription %}Rough notes and sketches from the field {% endblock %} {%block bodyid%}id="field-notes"{%endblock%} -{% block breadcrumbs %}{% include "lib/breadcrumbs.html" with breadcrumbs=breadcrumbs %}{% endblock %} +{% block breadcrumbs %} + +{% endblock %} {% block primary %}

Field Notes

diff --git a/app/posts/views/field_note_views.py b/app/posts/views/field_note_views.py index 8b2c78c..41ceeaa 100644 --- a/app/posts/views/field_note_views.py +++ b/app/posts/views/field_note_views.py @@ -18,6 +18,7 @@ class FieldNoteListView(PaginatedListView): class FieldNoteDetailView(LuxDetailView): model = Post slug_field = "slug" + template_name = "posts/fieldnote_detail.html" class FieldNoteDetailViewTXT(FieldNoteDetailView): -- cgit v1.2.3