<commit_before><section id="notifications_widget">
    {if="!empty($invitations)"}
    <ul class="list">
        <li class="subheader">
            <p>
                <span class="info">{$invitations|count}</span>
                {$c->__('invitations.title')}
            </p>
        </li>
    </ul>
    <ul class="list middle divided spaced">
        {loop="$invitations"}
            <li data-jid="{$value->jid}">
                {$url = $value->getPhoto()}
                {if="$url"}
                    <span class="primary icon bubble">
                        <img src="{$url}">
                    </span>
                {else}
                    <span class="primary icon bubble color {$value->jid|stringToColor}">
                        <i class="material-icons">person</i>
                    </span>
                {/if}
                <span class="control icon green active" title="{$c->__('button.accept')}" onclick="Invitations_ajaxAccept('{$value->jid}');">
                    <i class="material-icons">check</i>
                </span>
                <span class="control icon red active" title="{$c->__('button.refuse')}" onclick="Invitations_ajaxRefuse('{$value->jid}');">
                    <i class="material-icons">close</i>
                </span>
                <span class="control icon gray active" onclick="MovimUtils.redirect('{$c->route('contact', $value->jid)}')">
                    <i class="material-icons">person</i>
                </span>
                <p class="line normal">
                    {$c->__('invitations.wants_to_talk', $value->truename)}
                </p>
                <p class="line">{$value->jid}</p>
            </li>
        {/loop}
    </ul>
    {/if}

    {if="$notifs->isNotEmpty()"}
    <ul class="list active">
        <li class="subheader">
            <p>
                {$c->__('notifs.title')}
            </p>
        </li>

        {$old = null}<commit_msg>Fix accept/refuse buttons for invitations<commit_after><section id="notifications_widget">
    {if="!empty($invitations)"}
    <ul class="list">
        <li class="subheader">
            <p>
                <span class="info">{$invitations|count}</span>
                {$c->__('invitations.title')}
            </p>
        </li>
    </ul>
    <ul class="list middle divided spaced">
        {loop="$invitations"}
            <li data-jid="{$value->jid}">
                {$url = $value->getPhoto()}
                {if="$url"}
                    <span class="primary icon bubble">
                        <img src="{$url}">
                    </span>
                {else}
                    <span class="primary icon bubble color {$value->jid|stringToColor}">
                        <i class="material-icons">person</i>
                    </span>
                {/if}
                <span class="control icon green active" title="{$c->__('button.accept')}" onclick="Notifications_ajaxAccept('{$value->jid}');">
                    <i class="material-icons">check</i>
                </span>
                <span class="control icon red active" title="{$c->__('button.refuse')}" onclick="Notifications_ajaxRefuse('{$value->jid}');">
                    <i class="material-icons">close</i>
                </span>
                <span class="control icon gray active" onclick="MovimUtils.redirect('{$c->route('contact', $value->jid)}')">
                    <i class="material-icons">person</i>
                </span>
                <p class="line normal">
                    {$c->__('invitations.wants_to_talk', $value->truename)}
                </p>
                <p class="line">{$value->jid}</p>
            </li>
        {/loop}
    </ul>
    {/if}

    {if="$notifs->isNotEmpty()"}
    <ul class="list active">
        <li class="subheader">
            <p>
                {$c->__('notifs.title')}
            </p>
        </li>

        {$old = null}
{'fraction_non_alphanumeric': 0.18086734693877551, 'fraction_numerical': 0.0, 'mean_word_length': 1.5296774193548388, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 0, '>': 115, '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': '3215586', 'n_tokens_mistral': 1141, 'n_tokens_neox': 1085, 'n_words': 197}