refactor: Remove deprecated search

This commit is contained in:
2025-06-17 06:45:22 +02:00
parent 040299b90c
commit d9c7aa8c49
3 changed files with 3 additions and 8 deletions

View File

@@ -18,7 +18,7 @@
<div id="navbarBasicExample" class="navbar-menu">
<div class="navbar-start">
<a class="navbar-item" href="{% url 'search-bulma' %}">
<a class="navbar-item" href="{% url 'search' %}">
<i class="fas fa-search"></i> {% translate 'Suchen' %}
</a>

View File

@@ -52,7 +52,6 @@ urlpatterns = [
# ex: /search/
path("suchen/", views.search, name="search"),
path("bulma/suchen/", views.search_bulma, name="search-bulma"),
path("suchen/<slug:important_location_slug>", views.search_important_locations, name="search-by-location"),
# ex: /map/
path("map/", views.map, name="map"),

View File

@@ -218,14 +218,10 @@ def search_important_locations(request, important_location_slug):
"search_radius": search.max_distance,
"zoom_level": zoom_level_for_radius(search.max_distance),
"geocoding_api_url": settings.GEOCODING_API_URL, }
return render(request, 'fellchensammlung/search.html', context=context)
return render(request, 'fellchensammlung/bulma-search.html', context=context)
def search_bulma(request):
return search(request, "fellchensammlung/bulma-search.html")
def search(request, templatename="fellchensammlung/search.html"):
def search(request, templatename="fellchensammlung/bulma-search.html"):
# A user just visiting the search site did not search, only upon completing the search form a user has really
# searched. This will toggle the "subscribe" button
searched = False