<div class="cell medium-12 large-3 my-block">
    <div class="dark_bubble">
        <label class="matchtitle winner">Statistiques du tournoi</label>

        <div>
            {% with stats=team.get_statistics %}

            <div class="match-result">
                <div class="player">
                    <div class="semibold">
                        <strong>Poids de la paire</strong>
                    </div>
                </div>
                <div class="scores">
                    <span class="score ws numbers">{{ stats.weight }}</span>
                </div>
            </div>

            <div class="match-result top-border">
                <div class="player">
                    <div class="semibold">
                        <strong>Position initiale</strong>
                    </div>
                </div>
                <div class="scores">
                    <span class="score ws numbers">{{ stats.team_rank }} / {{ stats.total_teams }}</span>
                </div>
            </div>


            {% if stats.final_ranking %}
            <div class="match-result top-border">
                <div class="player">
                    <div class="semibold">
                        <strong>Classement final</strong>
                    </div>
                </div>
                <div class="scores">
                    <span class="score ws numbers">{{ stats.final_ranking }}</span>
                </div>
            </div>
            {% endif %}

            {% if stats.points_earned %}
            <div class="match-result top-border">
                <div class="player">
                    <div class="semibold">
                        <strong>Points gagnés</strong>
                    </div>
                </div>
                <div class="scores">
                    <span class="score ws numbers">{{ stats.points_earned }} pts</span>
                </div>
            </div>
            {% endif %}

            {% if stats.initial_stage %}
            <div class="match-result top-border">
                <div class="player">
                    <div class="semibold">
                        <strong>Départ</strong>
                    </div>
                </div>
                <div class="scores">
                    <span class="score ws numbers">{{ stats.initial_stage }}</span>
                </div>
            </div>
            {% endif %}

            <div class="match-result top-border">
                <div class="player">
                    <div class="semibold">
                        <strong>Matchs joués</strong>
                    </div>
                </div>
                <div class="scores">
                    <span class="score ws numbers">{{ stats.matches_played }}</span>
                </div>
            </div>

            {% if stats.victory_ratio %}
            <div class="match-result top-border">
                <div class="player">
                    <div class="semibold">
                        <strong>Ratio victoires</strong>
                    </div>
                </div>
                <div class="scores">
                    <span class="score ws numbers">{{ stats.victory_ratio }}</span>
                </div>
            </div>
            {% endif %}
            {% endwith %}
        </div>
    </div>
</div>
