2016-11-11 13:11:57 +08:00
|
|
|
@model HeaderBarModel
|
2017-03-15 14:28:33 +08:00
|
|
|
<header class="header">
|
2016-11-12 19:20:19 +08:00
|
|
|
<a id="navbar" href="#" class="sidebar-toggle-box">
|
2016-11-07 17:26:17 +08:00
|
|
|
<i class="fa fa-bars"></i>
|
2016-11-18 11:58:54 +08:00
|
|
|
<span id="websiteTitle">@Model.Title</span>
|
2016-11-07 17:26:17 +08:00
|
|
|
</a>
|
2017-03-23 16:21:23 +08:00
|
|
|
@if (LgbPrincipal.IsAdmin(User))
|
2016-11-10 16:39:07 +08:00
|
|
|
{
|
|
|
|
<ul class="notify-row">
|
2016-11-18 10:18:41 +08:00
|
|
|
<!-- tasks start -->
|
|
|
|
<li class="dropdown">
|
|
|
|
<a data-toggle="dropdown" class="dropdown-toggle" href="#">
|
|
|
|
<i class="fa fa-tasks"></i>
|
2016-11-18 15:37:48 +08:00
|
|
|
<span id="msgHeaderTaskBadge" class="badge bg-success"></span>
|
2016-11-18 10:18:41 +08:00
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu tasks-bar">
|
2017-03-15 14:28:33 +08:00
|
|
|
<li class="notify-arrow notify-arrow-green"></li>
|
2016-11-18 15:37:48 +08:00
|
|
|
<li id="msgHeaderTaskContent">
|
|
|
|
<p>您有 <span id="msgHeaderTask">0</span> 个未完成的任务</p>
|
2016-11-18 10:18:41 +08:00
|
|
|
</li>
|
|
|
|
<li>
|
2016-11-18 14:42:51 +08:00
|
|
|
<a href="~/Admin/Tasks">查看所有任务</a>
|
2016-11-18 10:18:41 +08:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<!-- tasks end -->
|
2016-11-12 15:44:25 +08:00
|
|
|
<!-- message dropdown start-->
|
2016-11-18 10:18:41 +08:00
|
|
|
<li class="dropdown">
|
|
|
|
<a data-toggle="dropdown" class="dropdown-toggle" href="#">
|
|
|
|
<i class="fa fa-envelope"></i>
|
2016-11-18 14:42:51 +08:00
|
|
|
<span id="msgHeaderMsgBadge" class="badge bg-important"></span>
|
2016-11-18 10:18:41 +08:00
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu inbox">
|
2017-03-15 14:28:33 +08:00
|
|
|
<li class="notify-arrow notify-arrow-red"></li>
|
2016-11-18 14:42:51 +08:00
|
|
|
<li id="msgHeaderMsgContent">
|
|
|
|
<p>您有 <span id="msgHeaderMsg">0</span> 个未读的消息</p>
|
2016-11-18 10:18:41 +08:00
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="~/Admin/Messages">查看所有消息</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
2016-11-12 15:44:25 +08:00
|
|
|
<!-- message dropdown end -->
|
2016-11-18 10:18:41 +08:00
|
|
|
<!-- users dropdown start-->
|
|
|
|
<li class="dropdown">
|
|
|
|
<a data-toggle="dropdown" class="dropdown-toggle" href="#">
|
|
|
|
<i class="fa fa-user-plus"></i>
|
2016-11-18 14:42:51 +08:00
|
|
|
<span id="msgHeaderUserBadge" class="badge bg-user"></span>
|
2016-11-18 10:18:41 +08:00
|
|
|
</a>
|
2016-11-18 14:42:51 +08:00
|
|
|
<ul class="dropdown-menu users">
|
2017-03-15 14:28:33 +08:00
|
|
|
<li class="notify-arrow notify-arrow-user"></li>
|
2016-11-18 10:18:41 +08:00
|
|
|
<li id="msgHeaderUserContent">
|
2016-11-18 14:42:51 +08:00
|
|
|
<p>您有 <span id="msgHeaderUser">0</span> 条新用户通知</p>
|
2016-11-18 10:18:41 +08:00
|
|
|
</li>
|
2016-11-18 14:42:51 +08:00
|
|
|
<li>
|
2016-11-18 10:18:41 +08:00
|
|
|
<a href="~/Admin/Notifications">查看所有通知</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<!-- users dropdown end -->
|
|
|
|
<!-- apps dropdown start-->
|
|
|
|
<li class="dropdown">
|
|
|
|
<a data-toggle="dropdown" class="dropdown-toggle" href="#">
|
|
|
|
<i class="fa fa-bug"></i>
|
2016-11-18 14:42:51 +08:00
|
|
|
<span id="msgHeaderAppBadge" class="badge bg-warning"></span>
|
2016-11-18 10:18:41 +08:00
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu notification">
|
2017-03-15 14:28:33 +08:00
|
|
|
<li class="notify-arrow notify-arrow-yellow"></li>
|
2016-11-18 14:42:51 +08:00
|
|
|
<li id="msgHeaderAppContent">
|
|
|
|
<p>您有 <span id="msgHeaderApp">0</span> 条程序异常通知</p>
|
2016-11-18 10:18:41 +08:00
|
|
|
</li>
|
|
|
|
<li>
|
2016-11-18 14:42:51 +08:00
|
|
|
<a href="~/Admin/Exceptions">查看所有异常</a>
|
2016-11-18 10:18:41 +08:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<!-- apps dropdown end -->
|
|
|
|
<!-- db dropdown start-->
|
|
|
|
<li class="dropdown">
|
|
|
|
<a data-toggle="dropdown" class="dropdown-toggle" href="#">
|
|
|
|
<i class="fa fa-database"></i>
|
2016-11-18 14:42:51 +08:00
|
|
|
<span id="msgHeaderDbBadge" class="badge bg-db"></span>
|
2016-11-18 10:18:41 +08:00
|
|
|
</a>
|
2016-11-18 14:42:51 +08:00
|
|
|
<ul class="dropdown-menu dbs">
|
2017-03-15 14:28:33 +08:00
|
|
|
<li class="notify-arrow notify-arrow-db"></li>
|
2016-11-18 14:42:51 +08:00
|
|
|
<li id="msgHeaderDbContent">
|
|
|
|
<p>您有 <span id="msgHeaderDb">0</span> 条数据库异常通知</p>
|
2016-11-18 10:18:41 +08:00
|
|
|
</li>
|
|
|
|
<li>
|
2016-11-18 14:42:51 +08:00
|
|
|
<a href="~/Admin/Exceptions">查看所有异常</a>
|
2016-11-18 10:18:41 +08:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<!-- db dropdown end -->
|
2016-11-10 16:39:07 +08:00
|
|
|
</ul>
|
|
|
|
}
|
2017-03-15 14:28:33 +08:00
|
|
|
<div class="dropdown">
|
|
|
|
<a data-toggle="dropdown" class="dropdown-toggle" href="#">
|
|
|
|
<img id="headerIcon" alt="" src="@Url.Content(Model.Icon)">
|
2017-04-06 12:07:17 +08:00
|
|
|
<span id="userDisplayName" data-userName="@Model.UserName" class="username">@Model.DisplayName</span>
|
2017-03-15 14:28:33 +08:00
|
|
|
<b class="caret"></b>
|
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li></li>
|
2017-03-23 17:21:58 +08:00
|
|
|
<li><a href="~/Admin/Profiles"><i class=" fa fa-suitcase"></i>个人中心</a></li>
|
2017-03-15 14:28:33 +08:00
|
|
|
<li><a href="~/Admin/Index"><i class="fa fa-cog"></i>设置</a></li>
|
|
|
|
<li><a href="~/Admin/Notifications"><i class="fa fa-bell"></i>通知<span id="logoutNoti" class="badge"></span></a></li>
|
2017-03-26 15:09:05 +08:00
|
|
|
<li><a href="~/Home/Login"><i class="fa fa-key"></i>注销</a></li>
|
2017-03-15 14:28:33 +08:00
|
|
|
</ul>
|
|
|
|
</div>
|
2016-10-26 14:02:40 +08:00
|
|
|
<ul class="breadcrumb">
|
|
|
|
<li><a href="@Url.Content(Model.HomeUrl)"><i class="fa fa-home"></i>首页</a></li>
|
2016-11-19 12:22:58 +08:00
|
|
|
<li id="breadNav"></li>
|
2016-10-26 14:02:40 +08:00
|
|
|
</ul>
|
2016-10-22 20:55:07 +08:00
|
|
|
</header>
|