<core-split-view>
    <ion-content>
        <ion-refresher [enabled]="participantsLoaded" (ionRefresh)="refreshParticipants($event)">
            <ion-refresher-content pullingText="{{ 'core.pulltorefresh' | translate }}"></ion-refresher-content>
        </ion-refresher>
        <core-loading [hideUntil]="participantsLoaded">
            <core-empty-box *ngIf="participants && participants.length == 0" icon="person" [message]="'core.user.noparticipants' | translate">
            </core-empty-box>

            <ion-list *ngIf="participants && participants.length > 0" no-margin>
                <a ion-item text-wrap *ngFor="let participant of participants" [title]="participant.fullname" (click)="gotoParticipant(participant.id)" [class.core-split-item-selected]="participant.id == participantId">
                    <ion-avatar core-user-avatar [user]="participant" item-start [userId]="participant.id" [checkOnline]="true"></ion-avatar>
                    <h2><core-format-text [text]="participant.fullname"></core-format-text></h2>
                    <p *ngIf="participant.lastaccess"><strong>{{ 'core.lastaccess' | translate }}: </strong>{{ participant.lastaccess | coreTimeAgo }}</p>
                </a>
            </ion-list>
            <core-infinite-loading [enabled]="canLoadMore" (action)="loadMoreData($event)" [error]="loadMoreError"></core-infinite-loading>
        </core-loading>
    </ion-content>
</core-split-view>