zhaolei
5 days ago 4a2e5b9a21940f11757be37d99f0944e240e908b
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
@model HeaderBarModel
<header class="header">
    <div class="bg"></div>
    <div class="d-flex align-items-center">
        <a id="navbar" href="#" class="sidebar-toggle-box">
            <i class="fa fa-bars"></i>
            <span id="websiteTitle">@Model.Title</span>
        </a>
        <div class="nav">
            @if (User.IsInRole("Administrators"))
            {
                <!-- tasks start -->
                <div class="dropdown">
                    <a data-toggle="dropdown" class="shadow-primary" href="#">
                        <i class="fa fa-tasks"></i>
                        <span id="msgHeaderTaskBadge" class="badge badge-pill badge-primary"></span>
                    </a>
                    <div class="dropdown-menu">
                        <div class="dropdown-arrow arrow-primary"></div>
                        <div id="msgHeaderTaskContent" class="dropdown-header bg-primary">您有 <span id="msgHeaderTask">0</span> 个未完成的任务</div>
                        <div class="dropdown-footer">
                            <a href="~/Admin/Tasks">查看所有任务</a>
                        </div>
                    </div>
                </div>
                <!-- tasks end -->
                <!-- message dropdown start-->
                <div class="dropdown">
                    <a data-toggle="dropdown" class="shadow-info" href="#">
                        <i class="fa fa-envelope"></i>
                        <span id="msgHeaderMsgBadge" class="badge badge-pill badge-info"></span>
                    </a>
                    <div class="dropdown-menu">
                        <div class="dropdown-arrow arrow-info"></div>
                        <div id="msgHeaderMsgContent" class="dropdown-header bg-info">您有 <span id="msgHeaderMsg">0</span> 个未读的消息</div>
                        <div class="dropdown-footer">
                            <a href="~/Admin/Messages">查看所有消息</a>
                        </div>
                    </div>
                </div>
                <!-- message dropdown end -->
                <!-- users dropdown start-->
                <div class="dropdown">
                    <a data-toggle="dropdown" class="shadow-success" href="#">
                        <i class="fa fa-user-plus"></i>
                        <span id="msgHeaderUserBadge" class="badge badge-pill badge-success"></span>
                    </a>
                    <div class="dropdown-menu">
                        <div class="dropdown-arrow arrow-success"></div>
                        <div id="msgHeaderUserContent" class="dropdown-header bg-success">您有 <span id="msgHeaderUser">0</span> 条新用户通知</div>
                        <div class="dropdown-footer">
                            <a href="~/Admin/Notifications">查看所有通知</a>
                        </div>
                    </div>
                </div>
                <!-- users dropdown end -->
                <!-- apps dropdown start-->
                <div class="dropdown">
                    <a data-toggle="dropdown" class="shadow-warning" href="#">
                        <i class="fa fa-bug"></i>
                        <span id="msgHeaderAppBadge" class="badge badge-pill badge-warning"></span>
                    </a>
                    <div class="dropdown-menu">
                        <div class="dropdown-arrow arrow-warning"></div>
                        <div id="msgHeaderAppContent" class="dropdown-header bg-warning">您有 <span id="msgHeaderApp">0</span> 条程序异常通知</div>
                        <div class="dropdown-footer">
                            <a href="~/Admin/Exceptions">查看所有异常</a>
                        </div>
                    </div>
                </div>
                <!-- apps dropdown end -->
                <!-- db dropdown start-->
                <div class="dropdown">
                    <a data-toggle="dropdown" class="shadow-danger" href="#">
                        <i class="fa fa-database"></i>
                        <span id="msgHeaderDbBadge" class="badge badge-pill badge-danger"></span>
                    </a>
                    <div class="dropdown-menu">
                        <div class="dropdown-arrow arrow-danger"></div>
                        <div id="msgHeaderDbContent" class="dropdown-header bg-danger">您有 <span id="msgHeaderDb">0</span> 条数据库异常通知</div>
                        <div class="dropdown-footer">
                            <a href="~/Admin/Exceptions">查看所有异常</a>
                        </div>
                    </div>
                </div>
                <!-- db dropdown end -->
                <div class="dropdown">
                    <a class="shadow-success" href="~/Account/Lock" data-toggle="tooltip" title="系统锁屏">
                        <i class="fa fa-tv"></i>
                    </a>
                </div>
            }
            <div class="@(Model.EnableBlazor ? "dropdown" : "dropdown d-none")">
                <a class="shadow-success dropdown-blazor" data-method="blazor" href="#" data-toggle="tooltip" title="Blazor 多 Tabs 模式">
                    <img src="~/images/blazor.svg" />
                </a>
            </div>
        </div>
        <div class="dropdown userinfo">
            <a data-toggle="dropdown" class="dropdown-toggle shadow-default" href="#">
                <img id="headerIcon" alt="" src="@Url.Content(Model.Icon)" />
                <span id="userDisplayName" data-userName="@Model.UserName" class="username text-truncate d-inline-block">@Model.DisplayName</span>
            </a>
            <div class="dropdown-menu dropdown-menu-right">
                <div class="dropdown-item">
                    <div class="d-flex flex-fill align-items-center">
                        <img src="@Url.Content(Model.Icon)">
                        <div class="flex-fill">
                            <div class="username text-truncate">@Model.DisplayName</div>
                            <div>登录名:@Model.UserName</div>
                        </div>
                    </div>
                </div>
                <div class="dropdown-item">
                    <a href="~/Admin/Profiles"><i class=" fa fa-suitcase"></i>个人中心</a>
                    <a href="~/Admin/Index"><i class="fa fa-cog"></i>设置</a>
                    <a href="~/Admin/Notifications"><i class="fa fa-bell"></i>通知<span id="logoutNoti" class="badge badge-pill badge-success"></span></a>
                </div>
                <div class="dropdown-item">
                    <a href="~/Account/Logout"><i class="fa fa-key"></i>注销</a>
                </div>
            </div>
        </div>
    </div>
    <nav aria-label="breadcrumb">
        <ol class="breadcrumb">
            <li class="breadcrumb-item"><a href="~/Admin/Index"><i class="fa fa-home"></i>首页</a></li>
            <li class="breadcrumb-item d-none" id="breadNav"></li>
        </ol>
    </nav>
</header>