feat: Show location when searching

This commit is contained in:
moanos [he/him] 2025-01-07 14:37:02 +01:00
parent b2d5265f7e
commit eee4cdf86b
2 changed files with 5 additions and 0 deletions

View File

@ -27,6 +27,10 @@
{% endif %}
{% endif %}
</div>
{% if location %}
<b>{% translate 'Gefundener Suchort:' %}</b> {{ location }}
{% endif %}
</form>
<div class="card half">
{% include "fellchensammlung/partials/partial-map.html" %}

View File

@ -204,6 +204,7 @@ def search(request):
"searched": searched,
"adoption_notices_map": AdoptionNotice.get_active_ANs(),
"map_center": search.position,
"location": search.location,
"search_radius": search.max_distance,
"zoom_level": zoom_level_for_radius(search.max_distance)}
return render(request, 'fellchensammlung/search.html', context=context)