{% load staticfiles %}
<header class="main-header" style="z-index: 99">
    <!-- Logo -->
    <a href="/" class="logo">
        <!-- mini logo for sidebar mini 50x50 pixels -->
        <span class="logo-mini"><b>C</b>小程序</span>
        <!-- logo for regular state and mobile devices -->
{#          <span class="logo-lg"><b>TWL</b>YWGL</span>#}
        <span class="logo-lg"><b>小程序管理平台</b></span>
    </a>
    <!-- Header Navbar: style can be found in header.less -->
    <nav class="navbar navbar-static-top" role="navigation">
        <!-- Sidebar toggle button-->
        <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
            <span class="sr-only">Toggle navigation</span>
        </a>
        <div class="navbar-custom-menu" id="menus">
            <ul class="nav navbar-nav">
                <li class="dropdown notifications-menu notice-menu">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <i class="fa fa-bell-o"></i>
                        <span class="label label-warning" id="notice_count" style="display: none"></span>
                    </a>
                    <ul class="dropdown-menu">
                        <li class="header">未读通告</li>
                        <li>
                            <!-- inner menu: contains the actual data -->
                            <ul class="menu">
                            </ul>
                        </li>
                        <li class="footer"><a href="/sitenotice/noticelist/">更多...</a></li>
                    </ul>
                </li>
                <!-- Tasks: style can be found in dropdown.less -->
                <li class="dropdown tasks-menu jobs-menu">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <i class="fa fa-flag-o"></i>
                        <span class="label label-danger" id="job_count" style="display: none"></span>
                    </a>
                    <ul class="dropdown-menu">
                        <li class="header">待办工单</li>
                        <li>
                            <!-- inner menu: contains the actual data -->
                            <ul class="menu">
                            </ul>
                        </li>
                        <li class="footer">
                            <a href="/myworkflowjob/mydutyjob/">更多...</a>
                        </li>
                    </ul>
                </li>
                <!-- User Account: style can be found in dropdown.less -->
                <li class="dropdown user user-menu">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <img src="{% static "dist/img/user2-160x160.jpg" %}" class="user-image" alt="User Image">
                        <span class="hidden-xs">{{ request.user.get_chinese_name }}</span>
                    </a>
                    <ul class="dropdown-menu">
                        <!-- User image -->
                        <li class="user-header">
                            <img src="{% static "dist/img/user2-160x160.jpg" %}" class="img-circle" alt="User Image">
                            <p>
                                {{ request.user.dept }}
                                <small></small>
                            </p>
                        </li>

                        <!-- Menu Footer-->
                        <li class="user-footer">
                            <div class="pull-left">
{#                                <a href="/account/changepwd/" class="btn btn-default btn-flat">修改密码</a>#}
                                <ul id="userprofile" class="nav navbar-nav navbar-right">
                                    <li class="dropdown">
                                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" style="">个人设置<span
                                                class="caret"></span></a>
                                        <ul class="dropdown-menu" role="menu">
                                            <li><a href="/account/changepwd/">修改密码</a></li>
                                            <li><a type="btn" onclick="open_set_email()">修改邮箱</a></li>
                                        </ul>
                                    </li>
                                </ul>
                            </div>
                            <div class="pull-right">
                                <a href="/logout/" class="btn btn-default btn-flat">注销</a>
                            </div>
                        </li>
                    </ul>
                </li>
            </ul>
        </div>
    </nav>
</header>
