修改BUG:调用Home/Index页面由于缺少nav元素导致userinfo没有再右上方

This commit is contained in:
Argo-MacBookPro 2018-08-10 18:44:13 +08:00
parent ae5b9c01e0
commit ddfdf2e520
1 changed files with 5 additions and 6 deletions

View File

@ -6,9 +6,9 @@
<i class="fa fa-bars"></i>
<span id="websiteTitle">@Model.Title</span>
</a>
<div class="nav">
@if (User.IsInRole("Administrators"))
{
<div class="nav">
<!-- tasks start -->
<div class="dropdown">
<a data-toggle="dropdown" class="shadow-primary" href="#">
@ -84,13 +84,12 @@
</div>
</div>
<!-- db dropdown end -->
</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">@Model.DisplayName</span>
<b class="caret"></b>
</a>
<div class="dropdown-menu dropdown-menu-right">
<div class="dropdown-item">