Blame view

templates/base_header.html 4.71 KB
831eac332   zhuzhenchao   add file
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
  {% 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="/account/logout/" class="btn btn-default btn-flat">注销</a>
                              </div>
                          </li>
                      </ul>
                  </li>
              </ul>
          </div>
      </nav>
  </header>