<div class="js-menu" ng-controller="menuCtr">
    <div class="ui huge menu js-login-in" ng-if="login">
        <a class="item" ng-class="{selected:$index===selectLoginIndex}" ui-sref="{{ menu.uiSref }}" ui-sref-opts="{reload: true}" ng-repeat="menu in loginMenus" js-menu-init>
            <div>{{ menu.title }}</div>
            <div class="ui floating simple dropdown icon js-bookmark-dropdown" ng-if="$index==0" ng-click="$event.stopPropagation();">
                <i class="dropdown icon"></i>
                <div class="menu js-menu-option">
                    <div class="header">显示方式</div>
                    <div class="divider"></div>
                    <div class="field item" ng-click="updateShowStyle('navigate')">
                        <div class="ui radio checkbox checked js-radio-navigate">
                            <input type="radio" name="show-style" checked="">
                            <label>导航</label>
                        </div>
                    </div>
                    <div class="field item" ng-click="updateShowStyle('table')">
                        <div class="ui radio checkbox js-radio-table">
                            <input type="radio" name="show-style">
                            <label>表格</label>
                        </div>
                    </div>
                    <div class="field item" ng-click="updateShowStyle('card')">
                        <div class="ui radio checkbox js-radio-card">
                            <input type="radio" name="show-style">
                            <label>卡片</label>
                        </div>
                    </div>
                </div>
            </div>
        </a>
        <div class="right menu">
            <div class="item">
                <div class="ui transparent icon input">
                    <input class="prompt" type="text" ng-model="searchWord" placeholder="标题，链接..." ng-keypress="($event.which === 13)?searchBookmarks(searchWord):0">
                    <i class="search link icon" ng-click="searchBookmarks(searchWord)"></i>
                </div>
                <div class="results"></div>
            </div>
            <div class="item" title="添加书签" ng-click="showAddBookmarkMoadl()" ui-sref="bookmarks">
                <i class="add square icon"></i>
            </div>
            <div class="item">
                <i class="sign out icon" title="退出登陆" ng-click="logout()"></i>
            </div>
        </div>
    </div>
    <div class="ui huge menu js-not-login-in" ng-if="!login">
        <a class="item" ng-class="{selected:$index==selectNotLoginIndex}" ui-sref="{{ menu.uiSref}}" ng-repeat="menu in notLoginMenus">{{ menu.title}}</a>
    </div>
</div>
