<div class="col-sm-9 col-md-10 col-sm-push-3 col-md-push-2">
    <ol class="breadcrumb">
        <li><a href="#/realms/{{realm.realm}}/users">Users</a></li>
        <li>{{user.username}}</li>
    </ol>

    <h1>{{user.username|capitalize}}</h1>

    <kc-tabs-user></kc-tabs-user>

    <table class="table table-striped table-bordered">
        <thead>
            <tr>
                <th class="kc-table-actions" colspan="4">
                    <div class="form-inline">
                        <div class="pull-right" data-ng-show="hasAnyProvidersToCreate()">
                            <a class="btn btn-primary" href="#/create/federated-identity/{{realm.realm}}/{{user.id}}">Create</a>
                        </div>
                    </div>
                </th>
            </tr>
            <tr data-ng-hide="federatedIdentities.length == 0">
                <th>Identity Provider Alias</th>
                <th>Provider user ID</th>
                <th>Provider username</th>
                <th>Action</th>
            </tr>
        </thead>
        <tbody>
            <tr data-ng-repeat="identity in federatedIdentities">
                <td>{{identity.identityProvider}}</td>
                <td>{{identity.userId}}</td>
                <td>{{identity.userName}}</td>
                <td class="actions">
                    <div class="action-div"><i class="pficon pficon-delete" ng-click="removeProviderLink(identity)" tooltip-placement="right" tooltip="Remove Provider Link"></i></div>
                </td>
            </tr>
            <tr data-ng-show="federatedIdentities.length == 0">
                <td>No identity provider links available</td>
            </tr>
        </tbody>
    </table>
</div>

<kc-menu></kc-menu>