<div class="bs-sidebar col-md-3 clearfix" data-ng-include data-src="resourceUrl + '/partials/realm-menu.html'"></div>
<div id="content-area" class="col-md-9" role="main">
    <ul class="nav nav-tabs nav-tabs-pf">
        <li class="active"><a href="#/realms/{{realm.realm}}/sessions/realm">Realm Sessions</a></li>
        <li><a href="#/realms/{{realm.realm}}/token-settings">Timeout Settings</a></li>
        <li><a href="#/realms/{{realm.realm}}/sessions/revocation">Revocation</a></li>
    </ul>
    <h2></h2>
    <div id="content">
        <h2><span>{{realm.realm}}</span> Total Active Sessions</h2>
        <table class="table table-striped table-bordered">
            <thead>
            <tr>
                <th class="kc-table-actions" colspan="3">
                    <div class="pull-right">
                        <a class="btn btn-primary" ng-click="logoutAll()">Logout All</a>
                    </div>
                </th>
            </tr>
            <tr>
                <th>Client</th>
                <th>Active Sessions</th>
            </tr>
            </thead>
            <tbody>
            <tr data-ng-repeat="data in stats">
                <td><a href="#/realms/{{realm.realm}}/clients/{{data.id}}/sessions">{{data.clientId}}</a></td>
                <td>{{data.active}}</td>
            </tr>
            </tbody>
        </table>
    </div>
</div>