<commit_before>{% extends "data/base_club.html" %}
{% block active_home %}active{% endblock %}
{% block specific %}
<div class="row">
    <div class="col-sm-4 col-md-3">
        <div class="panel panel-default">
            <div class="panel-body">
                <small>
                    <strong>Country: </strong> {{ club.country.name }}<br>
                    <strong>Short name: </strong> {{ club.short_name }}<br>
                    <strong>Initials: </strong> {{ club.initials }}<br>
                </small>
                <hr>
                <small>
                    <strong>Online:</strong><br>
                    {% if club.website %}
                    <i class="fa fa-external-link fa-fw"></i> <a target="_blank" href="{{ club.website }}">Official website</a><br>
                    {% else %}
                    Official website unknown.<br>
                    {% endif %}
                    {% if club.twitter %}
                    <i class="fa fa-twitter fa-fw"></i> <a target="_blank" href="{{ club.twitter }}">Twitter</a><br>
                    {% endif %}
                    {% if club.facebook %}
                    <i class="fa fa-facebook fa-fw"></i> <a target="_blank" href="{{ club.facebook }}">Facebook</a><br>
                    {% endif %}
                </small>
                <hr>
                <small>
                    <strong>Address:</strong><br>
                    {{ club.address|default:"Address unknown." }}
                </small>
                <hr>
                <small>
                    <strong>Also known as:</strong>
                    <ul class="list-unstyled">
                    {% for clubname in name_list %}
                        <li>{{ clubname.season }} - {{ clubname.name }}</li>
                    {% empty %}
                        <li>No alternative names found.</li>
                    {% endfor %}
                    </ul>
                </small>
                <hr>
                <p class="small"><i class="fa fa-edit"></i> Is this information wrong or incomplete? You can fix it <a href="{% url 'data:club_update' pk=club.id %}">here</a>.</p>
            </div>
        </div>
        <div id="map_canvas" class="thumbnail">{% if not club.address %}Sorry, cannot show map without an address.{% endif %}</div>
    </div>
    <div class="col-sm-8 col-md-6">
        <div class="panel panel-primary">
            <div class="panel-heading">
                <h3 class="panel-title"><i class="fa fa-bar-chart-o"></i> {{ club.name }}'s Competitions</h3>
            </div>
            <table class="table table-hover">
                <thead>
                    <tr>
                        <th>Season</th>
                        <th>Comp.</th>
                        <th>Stage</th>
                    </tr>
                </thead>
                <tbody>
                    {% for gt in comp_list %}
                    <tr>
                        <td><a href="{{ gt.group.stage.comp_season.get_absolute_url }}" title="{{ gt.group.stage.comp_season }}">{{ gt.group.stage.comp_season.season }}</a></td>
                        <td><a href="{{ gt.group.stage.comp_season.competition.get_absolute_url }}" title="{{ gt.group.stage.comp_season.competition.name }}">{{ gt.group.stage.comp_season.competition.short_name }}</a></td>
                        <td><a href="{{ gt.group.stage.get_absolute_url }}" title="{{ gt.group.stage.name }}">{{ gt.group.stage.name }} {% if gt.group.stage.type != 'KO' %} - {{ gt.group.name }}{% endif %}</a></td>
                    </tr>
                    {% endfor %}
                </tbody>
            </table>
        </div>
    </div>
    <div class="col-sm-4 col-md-3">
        <div class="panel panel-primary">
            <div class="panel-heading">
                <h3 class="panel-title"><i class="fa fa-group"></i> Current players</h3>
            </div>
            <div class="list-group media-list">
                {% for player in club.get_current_team %}
                {% include "data/_player_list_item.html" with item=player.player %}
                {% empty %}
                <div class="list-group-item">No current players found. Check past seasons under the <a href="{% url 'data:club_team' pk=club.id %}"><i class="fa fa-group"></i> Team</a> section.</div>
                {% endfor %}
            </div>
        </div>
    </div>
</div>
{% endblock %}

{% block extra_script %}
<script src="https://maps.googleapis.com/maps/api/js?sensor=false"></script><commit_msg>Group club competition by comp. season and allow to expand all stages.<commit_after>{% extends "data/base_club.html" %}
{% block active_home %}active{% endblock %}
{% block specific %}
<div class="row">
    <div class="col-sm-4 col-md-3">
        <div class="panel panel-default">
            <div class="panel-body">
                <small>
                    <strong>Country: </strong> {{ club.country.name }}<br>
                    <strong>Short name: </strong> {{ club.short_name }}<br>
                    <strong>Initials: </strong> {{ club.initials }}<br>
                </small>
                <hr>
                <small>
                    <strong>Online:</strong><br>
                    {% if club.website %}
                    <i class="fa fa-external-link fa-fw"></i> <a target="_blank" href="{{ club.website }}">Official website</a><br>
                    {% else %}
                    Official website unknown.<br>
                    {% endif %}
                    {% if club.twitter %}
                    <i class="fa fa-twitter fa-fw"></i> <a target="_blank" href="{{ club.twitter }}">Twitter</a><br>
                    {% endif %}
                    {% if club.facebook %}
                    <i class="fa fa-facebook fa-fw"></i> <a target="_blank" href="{{ club.facebook }}">Facebook</a><br>
                    {% endif %}
                </small>
                <hr>
                <small>
                    <strong>Address:</strong><br>
                    {{ club.address|default:"Address unknown." }}
                </small>
                <hr>
                <small>
                    <strong>Also known as:</strong>
                    <ul class="list-unstyled">
                    {% for clubname in name_list %}
                        <li>{{ clubname.season }} - {{ clubname.name }}</li>
                    {% empty %}
                        <li>No alternative names found.</li>
                    {% endfor %}
                    </ul>
                </small>
                <hr>
                <p class="small"><i class="fa fa-edit"></i> Is this information wrong or incomplete? You can fix it <a href="{% url 'data:club_update' pk=club.id %}">here</a>.</p>
            </div>
        </div>
        <div id="map_canvas" class="thumbnail">{% if not club.address %}Sorry, cannot show map without an address.{% endif %}</div>
    </div>
    <div class="col-sm-8 col-md-6">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title"><i class="fa fa-bar-chart-o"></i> {{ club.name }}'s Competitions</h3>
            </div>
            <table class="table table-hover">
                <thead>
                    <tr>
                        <th>Season</th>
                        <th>Comp.</th>
                        <th>Stage</th>
                    </tr>
                </thead>
                <tbody>
                    {% for gt in comp_list %}
                    {% ifchanged gt.group.stage.comp_season %}
                    <tr>
                        <td><a href="{{ gt.group.stage.comp_season.get_absolute_url }}" title="{{ gt.group.stage.comp_season }}">{{ gt.group.stage.comp_season.season }}</a></td>
                        <td><a href="{{ gt.group.stage.comp_season.competition.get_absolute_url }}" title="{{ gt.group.stage.comp_season.competition.name }}">{{ gt.group.stage.comp_season.competition.short_name }}</a></td>
                        <td>
                          <a href="{{ gt.group.stage.get_absolute_url }}" title="{{ gt.group.stage.name }}">{{ gt.group.stage.name }} {% if gt.group.stage.type != 'KO' %} - {{ gt.group.name }}{% endif %}</a>
                          <button aria-expanded="true" class="th-toggler btn btn-default btn-xs pull-right" data-toggle="collapse" data-target=".extra-{{ gt.group.stage.comp_season.id }}"><i class="fa fa-chevron-up"></i></button>
                        </td>
                    </tr>
                    {% else %}
                    <tr class="extra-{{ gt.group.stage.comp_season.id }} collapse">
                        <td></td>
                        <td></td>
                        <td><a href="{{ gt.group.stage.get_absolute_url }}" title="{{ gt.group.stage.name }}">{{ gt.group.stage.name }} {% if gt.group.stage.type != 'KO' %} - {{ gt.group.name }}{% endif %}</a></td>
                    </tr>
                    {% endifchanged %}
                    {% endfor %}
                </tbody>
            </table>
        </div>
    </div>
    <div class="col-sm-4 col-md-3">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title"><i class="fa fa-group"></i> Current players</h3>
            </div>
            <div class="list-group media-list">
                {% for player in club.get_current_team %}
                {% include "data/_player_list_item.html" with item=player.player %}
                {% empty %}
                <div class="list-group-item">No current players found. Check past seasons under the <a href="{% url 'data:club_team' pk=club.id %}"><i class="fa fa-group"></i> Team</a> section.</div>
                {% endfor %}
            </div>
        </div>
    </div>
</div>
{% endblock %}

{% block extra_script %}
<script src="https://maps.googleapis.com/maps/api/js?sensor=false"></script>
{'fraction_non_alphanumeric': 0.17104600825531058, 'fraction_numerical': 0.0020134903855834087, 'mean_word_length': 1.4318237454100367, 'pattern_counts': {'":': 0, '<': 267, '<?xml version=': 0, '>': 267, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5145129', 'n_tokens_mistral': 2996, 'n_tokens_neox': 2709, 'n_words': 586}