<commit_before>{# src/Quak/OpenArenaBundle/Resources/views/Homepage/index.html.twig #}
{% extends 'QuakOpenArenaBundle::layout.html.twig' %}

{% block title %}
    Homepage
{% endblock %}

{% block body %}
<div id="currentSeason">
	<h1><a href="{{ path('QuakOpenArenaBundle_season', { id : latestSeason.number }) }}">Season {{ latestSeason.number }}</a></h1>
	<div id="nextMatch">
        <h2>Next match</h2>
		<h2><a href="{{ path('QuakOpenArenaBundle_match', { id: nextMatch.id }) }}">Round {{ nextMatch.round.number }}, Match {{ nextMatch.number }}</a></h2>
		<h3>{{ nextMatch.date.format('Y-m-d H:i') }}<br /><br />
        {{ nextMatch.teams[0].name }}<br />
        vs<br />
        {{ nextMatch.teams[1].name }}</h3>
	</div>
	<div id="lastMatch">
        <h2>Last match</h2>
		<h2><a href="{{ path('QuakOpenArenaBundle_match', { id: lastMatch.id }) }}">Round {{ lastMatch.round.number }}, Match {{ lastMatch.number }}</a></h2>
		<h3>{{ lastMatch.date.format('Y-m-d H:i') }}</h3>
        {% for clash in lastMatch.clashes %}
            <h3 class="mapname">{{ clash.map.name }}</h3>
            {% if clash.clashResults.count > 0 %}
                <p class="teamname">{{ clash.clashResults[0].team.name }}</p>
                <p class="result">{{ clash.clashResults[0].score }}</p>
                <p class="result">{{ clash.clashResults[1].score }}</p>
                <p class="teamname">{{ clash.clashResults[1].team.name }}</p>
                <div class="clearfix"></div>
            {% endif %}
        {% endfor %}
	</div>
</div>
{% endblock %}<commit_msg>Fix homepage for ended season<commit_after>{# src/Quak/OpenArenaBundle/Resources/views/Homepage/index.html.twig #}
{% extends 'QuakOpenArenaBundle::layout.html.twig' %}

{% block title %}
    Homepage
{% endblock %}

{% block body %}
<div id="currentSeason">
	<h1><a href="{{ path('QuakOpenArenaBundle_season', { id : latestSeason.number }) }}">Season {{ latestSeason.number }}</a></h1>
    {% if nextMatch %}
	<div id="nextMatch">
        <h2>Next match</h2>
		<h2><a href="{{ path('QuakOpenArenaBundle_match', { id: nextMatch.id }) }}">Round {{ nextMatch.round.number }}, Match {{ nextMatch.number }}</a></h2>
		<h3>{{ nextMatch.date.format('Y-m-d H:i') }}<br /><br />
        {{ nextMatch.teams[0].name }}<br />
        vs<br />
        {{ nextMatch.teams[1].name }}</h3>
	</div>
    {% endif %}
    {% if lastMatch %}
	<div id="lastMatch">
        <h2>Last match</h2>
		<h2><a href="{{ path('QuakOpenArenaBundle_match', { id: lastMatch.id }) }}">Round {{ lastMatch.round.number }}, Match {{ lastMatch.number }}</a></h2>
		<h3>{{ lastMatch.date.format('Y-m-d H:i') }}</h3>
        {% for clash in lastMatch.clashes %}
            <h3 class="mapname">{{ clash.map.name }}</h3>
            {% if clash.clashResults.count > 0 %}
                <p class="teamname">{{ clash.clashResults[0].team.name }}</p>
                <p class="result">{{ clash.clashResults[0].score }}</p>
                <p class="result">{{ clash.clashResults[1].score }}</p>
                <p class="teamname">{{ clash.clashResults[1].team.name }}</p>
                <div class="clearfix"></div>
            {% endif %}
        {% endfor %}
	</div>
    {% endif %}
</div>
{% endblock %}
{'fraction_non_alphanumeric': 0.22387136672850957, 'fraction_numerical': 0.01422387136672851, 'mean_word_length': 2.911729141475212, 'pattern_counts': {'":': 0, '<': 87, '<?xml version=': 0, '>': 89, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6743582', 'n_tokens_mistral': 1224, 'n_tokens_neox': 1126, 'n_words': 204}