<div class="header rcue">
    <div class="navbar utility">
        <div class="navbar-inner clearfix container">
            <h1><a href="#/realms/{{realm.id}}"><strong>Keycloak</strong> Central Login</a></h1>
            <ul class="nav pull-right" data-ng-hide="auth.loggedIn">
                <li><a href="/auth-server/rest/saas/login?path={{fragment}}">Login</a></li>
                <li><a href="/auth-server/rest/saas/registrations">Register</a></li>
            </ul>
            <ul class="nav pull-right" data-ng-show="auth.loggedIn">
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <span class="icon-user">Icon: user</span>{{auth.user.displayName}}<i class="caret"></i></a>
                    <ul class="dropdown-menu">
                        <li><a href="#">Manage Account</a></li>
                        <li class="separator"><a href="/auth-server/rest/saas/logout">Sign Out</a></li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
    <div class="navbar primary">
        <div class="navbar-inner clearfix container" data-ng-controller="RealmDropdownCtrl">
            <ul class="nav pull-left">
                <li>
                    <span class="dropdown-label" data-ng-show="showNav()">Realm:</span>
                    <div class="select-rcue" data-ng-show="showNav()">
                        <select ng-change="changeRealm()" ng-model="current.realm" ng-options="r.realm for r in current.realms"></select>
                    </div><a href="#/realms/{{current.realm.id}}" id="refresh" data-ng-show="showNav()"><span class="icon-spinner6">Icon: spinner</span></a>
                </li>
            </ul>
            <div class="pull-right" data-ng-show="auth.loggedIn">
                <a class="button primary" href="#/create/realm" data-ng-class="path[0] == 'create' && path[1] == 'realm' && 'active'"
                    data-ng-show="auth.loggedIn">Add Realm</a>
            </div>
        </div>
    </div>
</div>
