Closes #1774: Include a button to refine search results for all object types under global search

This commit is contained in:
Jeremy Stretch 2017-12-20 14:09:52 -05:00
parent 50395aa821
commit a598035236

View File

@ -13,12 +13,14 @@
{% for obj_type in results %} {% for obj_type in results %}
<h3 id="{{ obj_type.name|lower }}">{{ obj_type.name|bettertitle }}</h3> <h3 id="{{ obj_type.name|lower }}">{{ obj_type.name|bettertitle }}</h3>
{% include 'panel_table.html' with table=obj_type.table hide_paginator=True %} {% include 'panel_table.html' with table=obj_type.table hide_paginator=True %}
{% if obj_type.table.page.has_next %} <a href="{{ obj_type.url }}" class="btn btn-primary pull-right">
<a href="{{ obj_type.url }}" class="btn btn-primary pull-right"> <span class="fa fa-arrow-right" aria-hidden="true"></span>
<span class="fa fa-arrow-right" aria-hidden="true"></span> {% if obj_type.table.page.has_next %}
See all {{ obj_type.table.page.paginator.count }} results See all {{ obj_type.table.page.paginator.count }} results
</a> {% else %}
{% endif %} Refine search
{% endif %}
</a>
<div class="clearfix"></div> <div class="clearfix"></div>
{% endfor %} {% endfor %}
</div> </div>