<commit_before>{% extends 'base.html.twig' %}

{% block page_title %}{{ title | trans }}{% endblock %}

{% block page_actions %}
    {% if is_granted('delete', view.data) %}
    <form data-confirm="delete" action="{{ view.path('delete') }}" method="post">
    {% endif %}
        <div class="btn-group pull-right btn-group-sm">
            {% block page_actions_back_to_list %}
                {% if view.hasCapability('index') %}
                    <a href="{{ view.path('index') }}" class="btn btn-default">
                        <i class="fa fa-list"></i>
                        {{ 'whatwedo_crud.index'|trans }}
                    </a>
                {% endif %}
            {% endblock %}

            <button class="btn btn-warning" data-toggle="default-crud-save">
                <i class="fa fa-floppy-o"></i>
                Speichern
            </button>
            <a href="{{ view.path('show') }}" class="btn btn-primary">
                <i class="fa fa-arrow-right"></i>
                {{ 'whatwedo_crud.view'|trans }}
            </a>
            {% if is_granted('delete', view.data) %}
                <button type="submit" class="btn btn-danger">
                    <i class="fa fa-trash-o"></i>
                    {{ 'whatwedo_crud.delete'|trans }}
                </button>
            {% endif %}
        </div>
    {% if is_granted('delete', view.data) %}
    </form>
    {% endif %}
{% endblock %}

{% block content %}
    {{ view.renderEdit|raw }}
{% endblock %}<commit_msg>fix: show button is has capability<commit_after>{% extends 'base.html.twig' %}

{% block page_title %}{{ title | trans }}{% endblock %}

{% block page_actions %}
    {% if is_granted('delete', view.data) %}
    <form data-confirm="delete" action="{{ view.path('delete') }}" method="post">
    {% endif %}
        <div class="btn-group pull-right btn-group-sm">
            {% block page_actions_back_to_list %}
                {% if view.hasCapability('index') %}
                    <a href="{{ view.path('index') }}" class="btn btn-default">
                        <i class="fa fa-list"></i>
                        {{ 'whatwedo_crud.index'|trans }}
                    </a>
                {% endif %}
            {% endblock %}

            <button class="btn btn-warning" data-toggle="default-crud-save">
                <i class="fa fa-floppy-o"></i>
                Speichern
            </button>
            {% if view.hasCapability('show') %}
            <a href="{{ view.path('show') }}" class="btn btn-primary">
                <i class="fa fa-arrow-right"></i>
                {{ 'whatwedo_crud.view'|trans }}
            </a>
            {% endif %}
            {% if is_granted('delete', view.data) %}
                <button type="submit" class="btn btn-danger">
                    <i class="fa fa-trash-o"></i>
                    {{ 'whatwedo_crud.delete'|trans }}
                </button>
            {% endif %}
        </div>
    {% if is_granted('delete', view.data) %}
    </form>
    {% endif %}
{% endblock %}

{% block content %}
    {{ view.renderEdit|raw }}
{% endblock %}
{'fraction_non_alphanumeric': 0.1824606488917443, 'fraction_numerical': 0.0, 'mean_word_length': 1.6524701873935264, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 43, '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': '2472912', 'n_tokens_mistral': 1008, 'n_tokens_neox': 898, 'n_words': 172}