<commit_before>{% extends '@DropTableLibrary/Default/layout.html.twig' %}

{% block content %}
    {#{{ dump(book) }}#}
    <div class="col-md-3">
        <div class="image">
                <img src="{{ book.thumbnail|default('http://placehold.it/200x200') }}" alt="{{ book.title }}"/>
        </div>
        <div class="category">
            [Kategorijos]{#{{ book.categories }}#}
        </div>
        <div class="publisher">
            [Leidykla]{#{{ book.publisher }}#}
        </div>
        <div class="created-at">
            Added: {{ book.createdAt.date|date('Y m d') }}
        </div>
    </div>
    <div class="col-md-6">
        <h1 class="title">
            {{ book.title }}
        </h1>
        <div class="authors">
            [Autoriai]
        </div>
        <div class="pages">
            {{ book.pages }}
            {% if (book.pages % 10) == 1 %}
                page
            {% else %}
                pages
            {% endif %}
        </div>
        <div class="description">
            {{ book.description }}
        </div>
        <div class="reserve-book">
            <a href="{{ path('reservation.reserve', { 'slug': book.slug }) }}">Reserve book</a>
            {% for flashMessage in app.session.flashbag.get('reservation-result') %}
                {{ flashMessage }}
            {% endfor %}<commit_msg>Disable reservation button if is not logged in.<commit_after>{% extends '@DropTableLibrary/Default/layout.html.twig' %}

{% block content %}
    {#{{ dump(book) }}#}
    <div class="col-md-3">
        <div class="image">
                <img src="{{ book.thumbnail|default('http://placehold.it/200x200') }}" alt="{{ book.title }}"/>
        </div>
        <div class="category">
            [Kategorijos]{#{{ book.categories }}#}
        </div>
        <div class="publisher">
            [Leidykla]{#{{ book.publisher }}#}
        </div>
        <div class="created-at">
            Added: {{ book.createdAt.date|date('Y m d') }}
        </div>
    </div>
    <div class="col-md-6">
        <h1 class="title">
            {{ book.title }}
        </h1>
        <div class="authors">
            [Autoriai]
        </div>
        <div class="pages">
            {{ book.pages }}
            {% if (book.pages % 10) == 1 %}
                page
            {% else %}
                pages
            {% endif %}
        </div>
        <div class="description">
            {{ book.description }}
        </div>
        <div class="reserve-book">
            <a href="{{ path('reservation.reserve', { 'slug': book.slug }) }}"
               class="btn btn-default {% if not is_granted('IS_AUTHENTICATED_REMEMBERED') %}disabled{% endif %}">
                Reserve book
            </a>
            {% for flashMessage in app.session.flashbag.get('reservation-result') %}
                {{ flashMessage }}
            {% endfor %}
{'fraction_non_alphanumeric': 0.18487686437738468, 'fraction_numerical': 0.009018383628165106, 'mean_word_length': 1.6075949367088607, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 49, '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': '2370140', 'n_tokens_mistral': 904, 'n_tokens_neox': 851, 'n_words': 165}