<commit_before><div class="fos_user_user_show">
    <div class="row">
        <div class="col-md-4">
            {% if user.avatar is not null %}
                <img class="thumbnail"
                     src="{{ vich_uploader_asset(user, 'avatarFile') | imagine_filter('users_list_avatar') }}"
                     alt="{{ user.username }}"/>
            {% endif %}
        </div>
        <div class="col-md-8">
            <p>{{ 'user.username' | trans }}: {{ user.username }}</p>

            <p>{{ 'user.fullname' | trans }}: {{ user.fullname }}</p>

            <p>{{ 'user.email' | trans }}: <a href="mailto:{{ user.email }}">{{ user.email }}</a></p>

            <p>{{ 'user.user_role' | trans }}: {{ ('user.role.title.' ~ user.roles | first) | trans }}</p>

            <p>
                {% if is_granted('ROLE_SUPER_ADMIN') %}
                    <a class="btn btn-primary" href="{{ path('sbts_user_edit', {'username': user.username}) }}">
                        {{ 'user.link.edit_user' | trans }}
                    </a>
                {% elseif user.username == app.user.username %}
                    <a class="btn btn-primary" href="{{ path('fos_user_profile_edit') }}">
                        {{ 'user.link.edit_my_user' | trans }}
                    </a>
                {% endif %}
            </p>
        </div>
    </div>
</div>
<commit_msg>OOT-570 Fix role for admin on user page<commit_after><div class="fos_user_user_show">
    <div class="row">
        <div class="col-md-4">
            {% if user.avatar is not null %}
                <img class="thumbnail"
                     src="{{ vich_uploader_asset(user, 'avatarFile') | imagine_filter('users_list_avatar') }}"
                     alt="{{ user.username }}"/>
            {% endif %}
        </div>
        <div class="col-md-8">
            <p>{{ 'user.username' | trans }}: {{ user.username }}</p>

            <p>{{ 'user.fullname' | trans }}: {{ user.fullname }}</p>

            <p>{{ 'user.email' | trans }}: <a href="mailto:{{ user.email }}">{{ user.email }}</a></p>

            <p>{{ 'user.user_role' | trans }}: {{ ('user.role.title.' ~ user.roles | first) | trans }}</p>

            <p>
                {% if is_granted('ROLE_ADMIN') %}
                    <a class="btn btn-primary" href="{{ path('sbts_user_edit', {'username': user.username}) }}">
                        {{ 'user.link.edit_user' | trans }}
                    </a>
                {% elseif user.username == app.user.username %}
                    <a class="btn btn-primary" href="{{ path('fos_user_profile_edit') }}">
                        {{ 'user.link.edit_my_user' | trans }}
                    </a>
                {% endif %}
            </p>
        </div>
    </div>
</div>

{'fraction_non_alphanumeric': 0.19587255611875454, 'fraction_numerical': 0.0025343953656770456, 'mean_word_length': 1.5846585594013096, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 53, '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': '2278724', 'n_tokens_mistral': 890, 'n_tokens_neox': 825, 'n_words': 163}