diff --git a/openrepairplatform/location/templates/location/place_detail.html b/openrepairplatform/location/templates/location/place_detail.html index da879728..3e82000a 100644 --- a/openrepairplatform/location/templates/location/place_detail.html +++ b/openrepairplatform/location/templates/location/place_detail.html @@ -10,8 +10,7 @@ {% endblock %} {% block content %} - {% url "location:list" as location_list_url %} - {% include "breadcrumb.html" with current=place first_parent_url=location_list_url first_parent_text="Lieux" %} + {% include "breadcrumb.html" with current=place first_parent_text="Lieux" %}
diff --git a/openrepairplatform/location/urls.py b/openrepairplatform/location/urls.py index edb24159..dcae32a9 100644 --- a/openrepairplatform/location/urls.py +++ b/openrepairplatform/location/urls.py @@ -3,7 +3,6 @@ app_name = "location" urlpatterns = [ - path("", views.PlaceMapView.as_view(), name="list"), path("create/", views.PlaceCreateView.as_view(), name="create"), path("/edit/", views.PlaceEditView.as_view(), name="edit"), path("/delete/", views.PlaceDeleteView.as_view(), name="delete"), diff --git a/openrepairplatform/location/views.py b/openrepairplatform/location/views.py index 3cb686f3..2d172d69 100644 --- a/openrepairplatform/location/views.py +++ b/openrepairplatform/location/views.py @@ -31,13 +31,6 @@ def delete(self, request, *args, **kwargs): return super().delete(request, *args, **kwargs) -class PlaceMapView(TemplateView): - template_name = "location/place_list.html" - - def get(self, request, *args, **kwargs): - return super().get(request, *args, **kwargs) - - class PlaceFormView(HasAdminPermissionMixin): def form_valid(self, form): form.instance.organization = self.organization diff --git a/openrepairplatform/templates/breadcrumb.html b/openrepairplatform/templates/breadcrumb.html index 24640faa..155e062e 100644 --- a/openrepairplatform/templates/breadcrumb.html +++ b/openrepairplatform/templates/breadcrumb.html @@ -14,6 +14,8 @@ + {% elif first_parent_text %} + {% endif %}