{% if results %}
<table cellspacing="0">
{# <thead> #}
{# <tr> #}
{# {% for header in result_headers %}<th{{ header.class_attrib }}> #}
{# {% if header.sortable %}<a href="{{ header.url }}">{% endif %} #}
{# {{ header.text|capfirst }} #}
{# {% if header.sortable %}</a>{% endif %}</th>{% endfor %} #}
{# </tr> #}
{# </thead> #}
<tbody>
<tr class="thumb_row">
{% for result in results %}
	<td>
	{% for item in result %}
		{{ item }}<br />
	{% endfor %}
	</td>
	{% if forloop.last %}
		{% for item in empty_spaces %}
		<td>&nbsp;</td>
		{% endfor %}
	{% else %}
		{% if forloop.counter|divisibleby:"3" %}
		</tr><tr class="thumb_row">
		{% endif %}
	{% endif %}
{% endfor %}
</tr>
</tbody>
</table>
{% endif %}
