{% comment %} Show a detail table Search field and Rows per page. Input: objects, our boilerplated paginated with search fields set. object_count, count of full, unfiltered, objects list search_what, fills in "Search ___" Only show the search form if we have more than 10 results, or if return from a previous search. {% endcomment %} {% if objects.paginator.count > 10 or request.GET.search %} {% if objects.paginator.count == 0 %}

No {{search_what}} found

{% else %} {% endif %}
{% if request.GET.search %} {% endif %}
{% if objects.paginator.count == 0 %} {% endif %}
{% endif %} {% if objects.paginator.count == 0 %}
{# end alert #} {% else %} {% if object_count > 10 %} {% endif %} {% endif %}