<commit_before><p ng-if="loading" class="text-center text-muted"><i class="fa fa-circle-o-notch fa-spin fa-2x text-info"></i></p>
<div class="row">
    <div class="col-xs-3" ng-if="user.is_admin && loading">
        <a href="#/contacts/add" class="btn btn-default" tooltip-placement="right" uib-tooltip="Ajouter"><i class="fa fa-edit text-info"></i></a>
    </div>
    <div class="col-xs-9" ng-if="contacts.length > 0 && loading">
        <div class="input-group input-group-sm">
            <input type="text" class="form-control" placeholder="Recherche" ng-model="search.all" autofocus>
            <span class="input-group-addon">
                <i class="fa fa-search"></i>
            </span>
        </div>
    </div>
     <div class="col-xs-12 text-right" ng-if="contacts.length > 0">
        <small class="text-muted" ng-if="search.all">{{(contacts | filter:search.all).length}} / </small>
        <small class="text-muted">{{contacts.length}} contacts</small>
    </div>
</div>
<div class="list-group">
    <div class="list-group-item" ng-repeat="c in contacts | filter:search.all | orderBy:'cn'">
        <h5 class="list-group-item-heading">
            {{c.cn}}
            <a href="#/contact/{{c.uid}}/edit" class="btn-link pull-right" ng-if="user.is_admin"><i class="fa fa-edit"></i></a>
        </h5>
        <div class="list-group-item-text row">
            <div class="col-xs-6 text-info pointer" ng-if="c.telephoneNumber" ng-click="call(c.telephoneNumber)">
                <i class="glyphicon glyphicon-phone-alt text-muted" style="margin-right:10px;"></i> {{c.telephoneNumber | phoneNumber}}
            </div>
            <div class="col-xs-6 text-info pointer" ng-if="c.mobile" ng-click="call(c.mobile)">
                <i class="glyphicon glyphicon-phone text-muted" style="margin-right:10px;"></i> 
                {{c.mobile | phoneNumber}}
            </div>
            <div class="col-xs-12 text-center small text-muted">
                {{c.mail}}
                <a href="#/contact/{{c.uid}}" class="btn btn-link btn-xs pull-right"><i class="fa fa-chevron-right"></i></a>
            </div>
        </div>
    </div>
    <div class="list-group-item list-group-item-info text-center" ng-if="search.all && contacts.length > 0 && (contacts | filter:search.all ).length == 0">
        Aucun contact trouver avec la recherche : <i>{{all}}</i>.
    </div>
    <div class="list-group-item list-group-item-info text-center" ng-if="contacts.length === 0 && loading">
        Aucun contact présent dans votre annuaire partagé
    </div>
</div><commit_msg>fix bug on contact list view<commit_after><p ng-if="loading" class="text-center text-muted"><i class="fa fa-circle-o-notch fa-spin fa-2x text-info"></i></p>
<div class="row">
    <div class="col-xs-3" ng-if="user.is_admin && !loading">
        <a href="#/contacts/add" class="btn btn-default" tooltip-placement="right" uib-tooltip="Ajouter"><i class="fa fa-edit text-info"></i></a>
    </div>
    <div class="col-xs-9" ng-if="contacts.length > 0 && !loading">
        <div class="input-group input-group-sm">
            <input type="text" class="form-control" placeholder="Recherche" ng-model="search.all" autofocus>
            <span class="input-group-addon">
                <i class="fa fa-search"></i>
            </span>
        </div>
    </div>
     <div class="col-xs-12 text-right" ng-if="contacts.length > 0">
        <small class="text-muted" ng-if="search.all">{{(contacts | filter:search.all).length}} / </small>
        <small class="text-muted">{{contacts.length}} contacts</small>
    </div>
</div>
<div class="list-group">
    <div class="list-group-item" ng-repeat="c in contacts | filter:search.all | orderBy:'cn'">
        <h5 class="list-group-item-heading">
            {{c.cn}}
            <a href="#/contact/{{c.uid}}/edit" class="btn-link pull-right" ng-if="user.is_admin"><i class="fa fa-edit"></i></a>
        </h5>
        <div class="list-group-item-text row">
            <div class="col-xs-6 text-info pointer" ng-if="c.telephoneNumber" ng-click="call(c.telephoneNumber)">
                <i class="glyphicon glyphicon-phone-alt text-muted" style="margin-right:10px;"></i> {{c.telephoneNumber | phoneNumber}}
            </div>
            <div class="col-xs-6 text-info pointer" ng-if="c.mobile" ng-click="call(c.mobile)">
                <i class="glyphicon glyphicon-phone text-muted" style="margin-right:10px;"></i> 
                {{c.mobile | phoneNumber}}
            </div>
            <div class="col-xs-12 text-center small text-muted">
                {{c.mail}}
                <a href="#/contact/{{c.uid}}" class="btn btn-link btn-xs pull-right"><i class="fa fa-chevron-right"></i></a>
            </div>
        </div>
    </div>
    <div class="list-group-item list-group-item-info text-center" ng-if="search.all && contacts.length > 0 && (contacts | filter:search.all ).length == 0">
        Aucun contact trouver avec la recherche : <i>{{all}}</i>.
    </div>
    <div class="list-group-item list-group-item-info text-center" ng-if="contacts.length === 0 && !loading">
        Aucun contact présent dans votre annuaire partagé
    </div>
</div>
{'fraction_non_alphanumeric': 0.19818252126836813, 'fraction_numerical': 0.007733952049497293, 'mean_word_length': 2.6792318634423897, 'pattern_counts': {'":': 0, '<': 121, '<?xml version=': 0, '>': 127, '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': '2763246', 'n_tokens_mistral': 1780, 'n_tokens_neox': 1723, 'n_words': 334}