<commit_before>{% extends 'base.html.twig' %}
{% import ':macro:display.html.twig' as display %}

{% block title %}
    {{ round.name }}
{% endblock %}

{% block body %}
    <table>
        {% for target in round.targets %}
            <tr>
                <td>{{ target|measure('distance') }}</td>
                <td>{{ target|measure('target') }}</td>
                <td>{{ target.arrowCount }} arrows total in ends of {{ target.endSize }} arrows</td>
            </tr>
        {% endfor %}
    </table>

    {% if round.records|length %}
        <h2>Records</h2>
        <table>
            {% for record in round.records %}
                <tr>
                    <td>{{ display.record(record) }}</td>
                    {% if record.currentHolder %}
                        <td class="shrink">{{ record.currentHolder.score }}</td>
                    {% else %}
                        <td class="shrink">Not broken</td>
                    {% endif %}
                </tr>
            {% endfor %}
        </table>
    {% endif %}
{% endblock %}

{% block sidebar %}
    {% if is_granted('ROLE_ADMIN') %}
        <div class="widget">
            <h3 class="widget-title">Actions</h3>
            <ul>
                <li><a href="{{ url('round_edit', { 'id': round.id }) }}">Edit</a></li>
                <li><a href="{{ url('round_delete', { 'id': round.id }) }}">Delete</a></li>
            </ul>
        </div>
    {% endif %}

    {{ parent() }}
{% endblock %}
<commit_msg>Updated round detail template<commit_after>{% extends 'base.html.twig' %}
{% import ':macro:display.html.twig' as display %}

{% block title %}
    {{ round.name }}
{% endblock %}

{% block body %}
    <h2>
        {% if round.indoor %}
            Indoor - {{ round.category.name }}
        {% else %}
            Outdoor - {{ round.category.name }}
        {% endif %}
    </h2>

    <table>
        {% for target in round.targets %}
            <tr>
                <td>{{ target|measure('distance') }}</td>
                <td>{{ target|measure('target') }}</td>
                <td>{{ target.arrowCount }} arrows total in ends of {{ target.endSize }} arrows</td>
            </tr>
        {% else %}
            <tr colspan="3">
                There don't seem to be targets in the round.
            </tr>
        {% endfor %}
    </table>

    {% if round.records|length %}
        <h2>Records</h2>
        <table>
            {% for record in round.records %}
                <tr>
                    <td>{{ display.record(record) }}</td>
                    {% if record.currentHolder %}
                        <td class="shrink">{{ record.currentHolder.score }}</td>
                    {% else %}
                        <td class="shrink">Not broken</td>
                    {% endif %}
                </tr>
            {% endfor %}
        </table>
    {% endif %}
{% endblock %}

{% block sidebar %}
    {% if is_granted('ROLE_ADMIN') %}
        <div class="widget">
            <h3 class="widget-title">Actions</h3>
            <ul>
                <li><a href="{{ url('round_edit', { 'id': round.id }) }}">Edit</a></li>
                <li><a href="{{ url('round_delete', { 'id': round.id }) }}">Delete</a></li>
            </ul>
        </div>
    {% endif %}

    {{ parent() }}
{% endblock %}

{'fraction_non_alphanumeric': 0.18891916439600362, 'fraction_numerical': 0.003330305782621859, 'mean_word_length': 1.4693572496263079, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 79, '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': '2261241', 'n_tokens_mistral': 1083, 'n_tokens_neox': 935, 'n_words': 208}