From 2011be3558946255be1c32767dd08d1beaee7641 Mon Sep 17 00:00:00 2001 From: Greg Kempe Date: Thu, 21 Nov 2024 15:36:08 +0200 Subject: [PATCH] improved bill views and breadcrumbs --- peachjam/templates/peachjam/bill_detail.html | 18 ++++++++++++++++++ .../templates/peachjam/place_bill_list.html | 1 - peachjam/views/bills.py | 12 ++++++++++++ 3 files changed, 30 insertions(+), 1 deletion(-) diff --git a/peachjam/templates/peachjam/bill_detail.html b/peachjam/templates/peachjam/bill_detail.html index 4aa29da67..3ca4542d8 100644 --- a/peachjam/templates/peachjam/bill_detail.html +++ b/peachjam/templates/peachjam/bill_detail.html @@ -1 +1,19 @@ {% extends 'peachjam/layouts/document_detail.html' %} +{% load i18n %} +{% block breadcrumbs %} + +{% endblock %} diff --git a/peachjam/templates/peachjam/place_bill_list.html b/peachjam/templates/peachjam/place_bill_list.html index 17888f1b1..91a95bd3c 100644 --- a/peachjam/templates/peachjam/place_bill_list.html +++ b/peachjam/templates/peachjam/place_bill_list.html @@ -11,7 +11,6 @@ - diff --git a/peachjam/views/bills.py b/peachjam/views/bills.py index 5d32c7619..743fcfd78 100644 --- a/peachjam/views/bills.py +++ b/peachjam/views/bills.py @@ -21,6 +21,18 @@ def get_base_queryset(self, *args, **kwargs): qs = qs.filter(jurisdiction=juri, locality=None) return qs + def get_context_data(self, **kwargs): + context = super().get_context_data(**kwargs) + + context["doc_table_show_doc_type"] = False + context["doc_table_show_court"] = False + context["doc_table_show_author"] = False + context["doc_table_show_jurisdiction"] = False + + del context["facet_data"]["natures"] + + return context + class PlaceBillListView(BillListView): template_name = "peachjam/place_bill_list.html"