{% load seeker %}

<table class="table table-striped table-seeker">
    <thead>
        <tr>
            {% if keywords %}
                <th scope="col">{% sort_link "" label="Rank" querystring=querystring sort_overrides=sort_overrides %}</th>
            {% endif %}
            {% for name in display_fields %}
                <th scope="col">{% sort_link name querystring=querystring mapping=mapping sort_overrides=sort_overrides %}</th>
            {% endfor %}
        </tr>
    </thead>
    <tbody>
        {% for result in results %}
            <tr>
                {% if keywords %}
                    <td>
                        <div class="progress" style="margin-bottom:0;">
                            <div class="progress-bar" style="width:{{ result.percentile }}%;"></div>
                        </div>
                    </td>
                {% endif %}
                {% for name in display_fields %}
                    {% if name in link_fields %}
                        <td><a href="{% result_link result name view=view %}">{% result_value result name %}</a></td>
                    {% else %}
                        <td>{% result_value result name %}</td>
                    {% endif %}
                {% endfor %}
            </tr>
        {% endfor %}
    </tbody>
</table>
