{% load static %}

        <div class="table-row-3-colums-ranks">

            <div class="table-cell"><div class="mybox center">{{ ranking.formatted_ranking }}</div></div>
            <div class="table-cell table-cell-large padding-left semibold">
                {% if ranking.id %}
                <a href="{% url 'team-details' tournament.id ranking.id %}" class="player-link"> <!-- Add this anchor tag -->
                {% endif %}

                {% for name in ranking.names %}
                <div>{{ name }}</div>
                {% endfor %}


                {% if ranking.id %}
                </a>
                {% endif %}

            </div>

            {% if tournament.display_points_earned %}
                <div class="table-cell right horizontal-padding">{{ ranking.points }}</div>
            {% else %}
                <div class="table-cell right horizontal-padding"></div>
            {% endif %}
        </div>

        {% if not forloop.last %}
        <hr/>
        {% endif %}
