{% comment %} Result Statistics Component - Django Cotton Version Displays result counts, filter summaries, and statistics for park listings. Shows current page info, total results, and search context. Usage Examples: Parameters: - total_results: Total number of results (required) - page_obj: Django page object for pagination info (optional) - search_query: Current search query (optional) - is_search: Whether this is a search result (default: False) - filter_count: Number of active filters (optional) - class: Additional CSS classes (optional) Features: - Clear result count display - Search context information - Pagination information - Filter summary - Responsive design {% endcomment %}
{% if total_results == 0 %} {% if is_search %} No parks found {% if search_query %} for "{{ search_query }}" {% endif %} {% else %} No parks available {% endif %} {% elif total_results == 1 %} 1 park {% if is_search and search_query %} found for "{{ search_query }}" {% endif %} {% else %} {{ total_results|floatformat:0 }} parks {% if is_search and search_query %} found for "{{ search_query }}" {% endif %} {% endif %}
{% if filter_count and filter_count > 0 %} {% endif %}
{% if page_obj and page_obj.has_other_pages %}
Page {{ page_obj.number }} of {{ page_obj.paginator.num_pages }} {% if page_obj.start_index and page_obj.end_index %} | Showing {{ page_obj.start_index }}-{{ page_obj.end_index }} {% endif %}
{% endif %}
{% if total_results == 0 and is_search %}

No results found

Try adjusting your search or removing some filters to see more results.

• Check your spelling

• Try more general terms

• Remove filters to broaden your search

{% endif %}