<commit_before>{% if is_granted("IS_AUTHENTICATED_REMEMBERED") and is_granted("ROLE_SUPER_ADMIN") %}
    <ul class="admin-controls">
        <li>
            <a href="{{ path('edit_dream', {'slug': dream.slug}) }}" class="btn btn-warning btn-xs">Редагувати</a>
        </li>
        {% if dream.currentStatus == 'implementing' %}
            <li>
                <a href="javascript:void(0)" data-toggle="modal" data-target="#dreamYellowBlockEdit" class="btn btn-warning btn-xs">Змінити банківські дані</a>
            </li>
            <li>
                <a href="javascript:void(0)" id="dream-finish-collect-res-modal" data-toggle="modal" data-target="#dreamCompletedModal" class="btn btn-info btn-xs" title="Закінчити реалізацію.">{{ 'dream.implementing.stop'|trans }}</a>
            </li>
        {% elseif dream.currentStatus == 'collecting-resources' %}
            <li>
                <a href="javascript:void(0)" id="dream-start-collect-res-modal" data-toggle="modal" data-target="#dreamImplementingModal" class="btn btn-info btn-xs" title="Розпочати реалізацію.">{{ 'dream.implementing.start'|trans }}</a>
            </li>
        {% endif %}
    </ul>
    {# ========= POPUPS ========= #}
    {% if dream.currentStatus == 'implementing' %}
        {{ include ('GeekhubDreamBundle:includes:dreamYellowBlockEditing.html.twig') }}
    {% endif %}
    {% if dream.currentStatus == 'collecting-resources' %}
        {{ include ('GeekhubDreamBundle:includes:dreamStatusImplementModal.html.twig') }}
    {% endif %}
{% endif %}

<h2>{{ dream.title }}</h2>

{# ========= AUTHOR CONTROLS ========= #}
{# ========= AUTHOR CONTROLS ========= #}
{# ========= AUTHOR CONTROLS ========= #}
{% if is_granted("IS_AUTHENTICATED_REMEMBERED") and (app.user.id == dream.author.id) %}
    {% if ((dream.currentStatus != 'success') and (dream.currentStatus != 'completed')) %}
        <ul class="author-controls">
            {% if (dream.currentStatus == 'submitted') or (dream.currentStatus == 'rejected') %}
                <li>
                    <a href="{{ path('edit_dream', {'slug': dream.slug}) }}" class="btn btn-warning btn-s" id="dream-edit-link">Редагувати</a>
                </li>
            {% else %}
                <li>
                    <a href="javascript:void(0)" id="dream-edit-dream-modal" data-toggle="modal" data-target="#dreamNotAllowedAuthorEdit" class="btn btn-warning btn-s" title="{{ 'dream.editDream'|trans }}">Редагувати</a>
                </li>
            {% endif %}

            {% if dream.currentStatus == 'implementing' %}
                <li>
                    <a href="javascript:void(0)"  id="dream-edit-yellowBlock-modal" data-toggle="modal" data-target="#dreamYellowBlockEdit" class="btn btn-warning btn-s">Змінити банківські дані</a>
                </li>
            {% endif %}
            {% if dream.currentStatus == 'collecting-resources' %}
                <li>
                    <a href="javascript:void(0)" id="dream-start-collect-res-modal" data-toggle="modal" data-target="#dreamImplementingModal" class="btn btn-info btn-s" title="Розпочати реалізацію.">{{ 'dream.implementing.start'|trans }}</a>
                </li>
            {% elseif dream.currentStatus == 'implementing' %}
                <li>
                    <a href="javascript:void(0)" id="dream-finish-collect-res-modal" data-toggle="modal" data-target="#dreamCompletedModal" class="btn btn-info btn-s" title="Закінчити реалізацію.">{{ 'dream.implementing.stop'|trans }}</a>
                </li>
            {% endif %}
        </ul>
     {% endif %}
    {# ========= POPUPS ========= #}
    {% if dream.currentStatus == 'implementing' %}
        {{ include ('GeekhubDreamBundle:includes:dreamYellowBlockEditing.html.twig') }}
    {% endif %}
    {% if dream.currentStatus == 'collecting-resources' %}
        {{ include ('GeekhubDreamBundle:includes:dreamStatusImplementModal.html.twig') }}
    {% endif %}
{% endif %}












{% if dream.currentStatus == 'implementing' and dream.implementedDescription is not null %}
    <div class="info-details" >
        {{ dream.implementedDescription|raw }}
    </div>
{% endif %}

<div class="description">
    {% if ((dream.currentStatus == 'completed') or (dream.currentStatus == 'success')) %}
        <span class="success"><em>Мрія успішно завершена</em></span><commit_msg>Success message only for success dreams<commit_after>{% if is_granted("IS_AUTHENTICATED_REMEMBERED") and is_granted("ROLE_SUPER_ADMIN") %}
    <ul class="admin-controls">
        <li>
            <a href="{{ path('edit_dream', {'slug': dream.slug}) }}" class="btn btn-warning btn-xs">Редагувати</a>
        </li>
        {% if dream.currentStatus == 'implementing' %}
            <li>
                <a href="javascript:void(0)" data-toggle="modal" data-target="#dreamYellowBlockEdit" class="btn btn-warning btn-xs">Змінити банківські дані</a>
            </li>
            <li>
                <a href="javascript:void(0)" id="dream-finish-collect-res-modal" data-toggle="modal" data-target="#dreamCompletedModal" class="btn btn-info btn-xs" title="Закінчити реалізацію.">{{ 'dream.implementing.stop'|trans }}</a>
            </li>
        {% elseif dream.currentStatus == 'collecting-resources' %}
            <li>
                <a href="javascript:void(0)" id="dream-start-collect-res-modal" data-toggle="modal" data-target="#dreamImplementingModal" class="btn btn-info btn-xs" title="Розпочати реалізацію.">{{ 'dream.implementing.start'|trans }}</a>
            </li>
        {% endif %}
    </ul>
    {# ========= POPUPS ========= #}
    {% if dream.currentStatus == 'implementing' %}
        {{ include ('GeekhubDreamBundle:includes:dreamYellowBlockEditing.html.twig') }}
    {% endif %}
    {% if dream.currentStatus == 'collecting-resources' %}
        {{ include ('GeekhubDreamBundle:includes:dreamStatusImplementModal.html.twig') }}
    {% endif %}
{% endif %}

<h2>{{ dream.title }}</h2>

{# ========= AUTHOR CONTROLS ========= #}
{# ========= AUTHOR CONTROLS ========= #}
{# ========= AUTHOR CONTROLS ========= #}
{% if is_granted("IS_AUTHENTICATED_REMEMBERED") and (app.user.id == dream.author.id) %}
    {% if ((dream.currentStatus != 'success') and (dream.currentStatus != 'completed')) %}
        <ul class="author-controls">
            {% if (dream.currentStatus == 'submitted') or (dream.currentStatus == 'rejected') %}
                <li>
                    <a href="{{ path('edit_dream', {'slug': dream.slug}) }}" class="btn btn-warning btn-s" id="dream-edit-link">Редагувати</a>
                </li>
            {% else %}
                <li>
                    <a href="javascript:void(0)" id="dream-edit-dream-modal" data-toggle="modal" data-target="#dreamNotAllowedAuthorEdit" class="btn btn-warning btn-s" title="{{ 'dream.editDream'|trans }}">Редагувати</a>
                </li>
            {% endif %}

            {% if dream.currentStatus == 'implementing' %}
                <li>
                    <a href="javascript:void(0)"  id="dream-edit-yellowBlock-modal" data-toggle="modal" data-target="#dreamYellowBlockEdit" class="btn btn-warning btn-s">Змінити банківські дані</a>
                </li>
            {% endif %}
            {% if dream.currentStatus == 'collecting-resources' %}
                <li>
                    <a href="javascript:void(0)" id="dream-start-collect-res-modal" data-toggle="modal" data-target="#dreamImplementingModal" class="btn btn-info btn-s" title="Розпочати реалізацію.">{{ 'dream.implementing.start'|trans }}</a>
                </li>
            {% elseif dream.currentStatus == 'implementing' %}
                <li>
                    <a href="javascript:void(0)" id="dream-finish-collect-res-modal" data-toggle="modal" data-target="#dreamCompletedModal" class="btn btn-info btn-s" title="Закінчити реалізацію.">{{ 'dream.implementing.stop'|trans }}</a>
                </li>
            {% endif %}
        </ul>
     {% endif %}
    {# ========= POPUPS ========= #}
    {% if dream.currentStatus == 'implementing' %}
        {{ include ('GeekhubDreamBundle:includes:dreamYellowBlockEditing.html.twig') }}
    {% endif %}
    {% if dream.currentStatus == 'collecting-resources' %}
        {{ include ('GeekhubDreamBundle:includes:dreamStatusImplementModal.html.twig') }}
    {% endif %}
{% endif %}












{% if dream.currentStatus == 'implementing' and dream.implementedDescription is not null %}
    <div class="info-details" >
        {{ dream.implementedDescription|raw }}
    </div>
{% endif %}

<div class="description">
    {% if (dream.currentStatus == 'success') %}
        <span class="success"><em>Мрія успішно завершена</em></span>
{'fraction_non_alphanumeric': 0.19219253800092123, 'fraction_numerical': 0.0020727775218793184, 'mean_word_length': 2.8108819657744624, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 0, '>': 101, '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': '6725279', 'n_tokens_mistral': 2893, 'n_tokens_neox': 2748, 'n_words': 449}