topbar.html 3.27 KB
<header>
    <div class="headerwrapper">
        <div class="header-left" style="font-size: 18px;color: #FCFDFE;">
                Yoho!Buy运营平台
            <div class="pull-right">
                <a href="/" class="menu-collapse">
                    <i class="fa fa-bars"></i>
                </a>
            </div>
        </div><!-- header-left -->

        <div class="header-right">
        <%if _locals.session.user.auth %>

        <div class="pull-right">
            <%if _locals.session.user.passwordMsg %>
            <div class="btn-group btn-group-list btn-group-notification">
                <div style="margin-top: 20px; color: red;">
                    <%_locals.session.user.passwordMsg%> 
                </div>
            </div>
            <%/if%>
            <div class="btn-group btn-group-list btn-group-notification">
                <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                    <i class="glyphicon glyphicon-user"></i>
                    <!--登录的用户角色-->
                    <span class="badge"><%_locals.session.user.role%></span>
                    <!--登录的用户真实名称-->
                    <span class="badge"><%_locals.session.user.name%></span>
                </button>
            </div>

                <div class="btn-group btn-group-list btn-group-notification">
                    <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                        <i class="fa fa-bell-o"></i>
                        <span class="badge">0</span>
                    </button>
                    <div class="dropdown-menu pull-right">
                        <a href="" class="link-right"><i class="fa fa-search"></i></a>
                        <h5>Notification</h5>
                    </div><!-- dropdown-menu -->
                </div><!-- btn-group -->

                <div class="btn-group btn-group-list btn-group-messages">
                    <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                        <i class="fa fa-envelope-o"></i>
                        <span class="badge">0</span>
                    </button>
                    <div class="dropdown-menu pull-right">
                        <a href="" class="link-right"><i class="fa fa-plus"></i></a>
                        <h5>New Messages</h5>
                    </div><!-- dropdown-menu -->
                </div><!-- btn-group -->

                <div class="btn-group btn-group-option">
                    <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                        <i class="fa fa-caret-down"></i>
                    </button>
                    <ul class="dropdown-menu pull-right" role="menu">
                        <li>
                            <a href="/account/profile/changepassword" class="glyphicon glyphicon-cog"> 修改密码</a>
                        </li>
                        <li>
                            <a href="/logout"><i class="glyphicon glyphicon-log-out"></i>退出</a>
                        </li>
                    </ul>
                </div><!-- btn-group -->

            </div><!-- pull-right -->

        
        <%/if%>
        </div>
    </div>
</<header>