BootstrapAdmin/Bootstrap.Admin/Views/Shared/Header.cshtml

118 lines
5.2 KiB
Plaintext
Raw Normal View History

2018-06-07 00:45:47 +08:00
@model Bootstrap.Admin.Models.HeaderBarModel
<header class="header">
<div class="bg">
</div>
<a id="navbar" href="#" class="sidebar-toggle-box">
<i class="fa fa-bars"></i>
<span id="websiteTitle">@Model.Title</span>
</a>
2018-06-07 00:45:47 +08:00
@if (User.IsInRole("Administrators"))
2016-11-10 16:39:07 +08:00
{
<ul class="notify-row">
<!-- tasks start -->
<li class="dropdown">
2018-08-02 19:19:03 +08:00
<a data-toggle="dropdown" href="#">
<i class="fa fa-tasks"></i>
<span id="msgHeaderTaskBadge" class="badge bg-success"></span>
</a>
<ul class="dropdown-menu tasks-bar">
<li class="notify-arrow notify-arrow-green"></li>
<li id="msgHeaderTaskContent">
<p>您有 <span id="msgHeaderTask">0</span> 个未完成的任务</p>
</li>
<li>
2016-11-18 14:42:51 +08:00
<a href="~/Admin/Tasks">查看所有任务</a>
</li>
</ul>
</li>
<!-- tasks end -->
<!-- message dropdown start-->
<li class="dropdown">
2018-08-02 19:19:03 +08:00
<a data-toggle="dropdown" href="#">
<i class="fa fa-envelope"></i>
2016-11-18 14:42:51 +08:00
<span id="msgHeaderMsgBadge" class="badge bg-important"></span>
</a>
<ul class="dropdown-menu inbox">
<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>
</li>
<li>
<a href="~/Admin/Messages">查看所有消息</a>
</li>
</ul>
</li>
<!-- message dropdown end -->
<!-- users dropdown start-->
<li class="dropdown">
2018-08-02 19:19:03 +08:00
<a data-toggle="dropdown" href="#">
<i class="fa fa-user-plus"></i>
2016-11-18 14:42:51 +08:00
<span id="msgHeaderUserBadge" class="badge bg-user"></span>
</a>
2016-11-18 14:42:51 +08:00
<ul class="dropdown-menu users">
<li class="notify-arrow notify-arrow-user"></li>
<li id="msgHeaderUserContent">
2016-11-18 14:42:51 +08:00
<p>您有 <span id="msgHeaderUser">0</span> 条新用户通知</p>
</li>
2016-11-18 14:42:51 +08:00
<li>
<a href="~/Admin/Notifications">查看所有通知</a>
</li>
</ul>
</li>
<!-- users dropdown end -->
<!-- apps dropdown start-->
<li class="dropdown">
2018-08-02 19:19:03 +08:00
<a data-toggle="dropdown" href="#">
<i class="fa fa-bug"></i>
2016-11-18 14:42:51 +08:00
<span id="msgHeaderAppBadge" class="badge bg-warning"></span>
</a>
<ul class="dropdown-menu notification">
<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>
</li>
<li>
2016-11-18 14:42:51 +08:00
<a href="~/Admin/Exceptions">查看所有异常</a>
</li>
</ul>
</li>
<!-- apps dropdown end -->
<!-- db dropdown start-->
<li class="dropdown">
2018-08-02 19:19:03 +08:00
<a data-toggle="dropdown" href="#">
<i class="fa fa-database"></i>
2016-11-18 14:42:51 +08:00
<span id="msgHeaderDbBadge" class="badge bg-db"></span>
</a>
2016-11-18 14:42:51 +08:00
<ul class="dropdown-menu dbs">
<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>
</li>
<li>
2016-11-18 14:42:51 +08:00
<a href="~/Admin/Exceptions">查看所有异常</a>
</li>
</ul>
</li>
<!-- db dropdown end -->
2016-11-10 16:39:07 +08:00
</ul>
}
<div class="dropdown">
<a data-toggle="dropdown" class="dropdown-toggle" href="#">
<img id="headerIcon" alt="" src="@Url.Content(Model.Icon)">
<span id="userDisplayName" data-userName="@Model.UserName" class="username">@Model.DisplayName</span>
<b class="caret"></b>
</a>
<ul class="dropdown-menu dropdown-menu-right">
<li></li>
2017-03-23 17:21:58 +08:00
<li><a href="~/Admin/Profiles"><i class=" fa fa-suitcase"></i>个人中心</a></li>
<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>
2018-06-07 12:28:26 +08:00
<li><a href="~/Account/Logout"><i class="fa fa-key"></i>注销</a></li>
</ul>
</div>
<ul class="breadcrumb">
<li><a href="@Url.Content(Model.HomeUrl)"><i class="fa fa-home"></i>首页</a></li>
<li id="breadNav"></li>
</ul>
</header>