<commit_before>{% extends "::base.html.twig" %}

{% block title %} Всі по треку {{ song.name }} альбому {{ song.album.name }} {% endblock %}

{% block content %}

    {% if is_granted('ROLE_USER') %}
    <div>
        <a href="{{ path('app_add_video', {"slugVideo" : song.album.slug, "slug" : song.slug}) }}">Добавить видео</a>
    </div>
        <div>
            <a href="{{ path('app_add_chord', {"slugChord" : song.album.slug, "slug" : song.slug}) }}">Добавить аккорды</a>
        </div>

    {% endif %}


    <table>

        <tr>
            <th>Видео</th>
            <th>Акорды</th>
        </tr>
        <tr>
            <td>
    {% for video in song.video %}
        <div class="col-lg-12">
            <div class="col-lg-12">
                <a href="{{ path('app_get_single_video', {"slugAlbum" : video.song.album.slug, "slugSong" : video.song.slug, "slug" : video.slug}) }}">{{ video.name }}</a>
            </div>

            <div class="col-lg-12">
                <div class="col-lg-6">Like: {{ video.dislike }}</div>
                <div class="col-lg-6">Dislike: {{ video.like }}</div>
            </div>
        </div>
    {% endfor %}
            </td>

            <td>

        <div class="col-lg-12">
            <div class="col-lg-12">
                <a href="{{ path('app_get_all_chords_in_song', {"slugAlbum" : song.album.slug, "slug" : song.slug}) }}">Chord</a>
            </div>

        </div>

            </td>
        </tr>
    </table>
{% endblock %}
<commit_msg>fix getallVideos<commit_after>{% extends "::base.html.twig" %}

{% block title %} Всі по треку {{ song.name }} альбому {{ song.album.name }} {% endblock %}

{% block content %}

    <div class="col-lg-12">

        <a href="{{ path('app_get_all_videos_in_song', {'slugAlbum' : song.album.slug, 'slug' : song.slug}) }}">
            Видео</a>
            |<a href="{{ path('app_get_all_chords_in_song', {"slugAlbum" : song.album.slug, "slug" : song.slug}) }}">Chord</a>


    </div>

    {% if is_granted('ROLE_USER') %}
    <div>
        <a href="{{ path('app_add_video', {"slugVideo" : song.album.slug, "slug" : song.slug}) }}">Добавить видео</a>
    </div>


    {% endif %}

    {% for video in song.video %}
        <div class="col-lg-12">
            <div class="col-lg-12">
                <a href="{{ path('app_get_single_video', {"slugAlbum" : video.song.album.slug, "slugSong" : video.song.slug, "slug" : video.slug}) }}">{{ video.name }}</a>
            </div>

            <div class="col-lg-12">
                <div class="col-lg-6">Like: {{ video.dislike }}</div>
                <div class="col-lg-6">Dislike: {{ video.like }}</div>
            </div>
        </div>
    {% endfor %}

{% endblock %}

{'fraction_non_alphanumeric': 0.2147329650092081, 'fraction_numerical': 0.008103130755064457, 'mean_word_length': 2.011086474501109, 'pattern_counts': {'":': 2, '<': 65, '<?xml version=': 0, '>': 65, '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': '3224968', 'n_tokens_mistral': 1039, 'n_tokens_neox': 996, 'n_words': 181}