Changeset 13847 for branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/Shared/Navbar.cshtml
- Timestamp:
- 05/12/16 17:09:12 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/Shared/Navbar.cshtml
r13733 r13847 2 2 @model HeuristicLab.Clients.Hive.WebJobManager.ViewModels.NavbarViewModel 3 3 4 <ul class="nav nav-tabs"> 4 <ul class="nav nav-tabs"> 5 <li role="presentation" 6 class="@(Model.Active == "Job" ? "active" : "")"> 7 <a asp-controller="Job" 8 asp-action="Index"> 9 Job management 10 </a> 11 </li> 5 12 <li role="presentation" 6 class="@(Model.Active == "Job" ? "active" : "")"> 7 <a asp-controller="Job" 8 asp-action="Index"> 9 Job management 10 </a> 13 class="@(Model.Active == "User" ? "active" : "") 14 @(Model.User.HasUserAdminAccess() == false ? "disabled" : "") 15 "> 16 @if (Model.User.HasUserAdminAccess()) 17 { 18 <a asp-controller="User" 19 asp-action="Index"> 20 User management 21 </a> 22 } 23 else 24 { 25 <a> User management</a> 26 } 27 11 28 </li> 12 <li role="presentation" 13 class="@(Model.Active == "User" ? "active" : "")"> 14 <a asp-controller="User" 15 asp-action="Index"> 16 User management 17 </a> 18 </li> 19 <li role="presentation" 20 class="@(Model.Active == "Resource" ? "active" : "")"> 29 <li role="presentation" 30 class="@(Model.Active == "Resource" ? "active" : "") 31 @(Model.User.hasResourceAdminAccess() == false ? "disabled" : "") 32 "> 33 @if (Model.User.hasResourceAdminAccess()) 34 { 21 35 <a asp-controller="Resource" 22 36 asp-action="Index"> 23 37 Resources 24 38 </a> 25 </li> 26 <li role="presentation" 27 class="pull-right "> 28 <a asp-controller="Home" 29 asp-action="Logout" 30 class="text-danger"> 31 Logout 32 <i class="fa fa-sign-out "></i> 33 </a> 34 </li> 35 </ul> 39 } 40 else 41 { 42 <a> Resources</a> 43 } 44 45 </li> 46 47 <li role="presentation" 48 class="pull-right "> 49 50 <a asp-controller="Home" 51 asp-action="Logout" 52 class="text-danger"> 53 Logout 54 <i class="fa fa-sign-out "></i> 55 </a> 56 </li> 57 <li class="pull-right"> 58 <h4 style="margin-bottom:0;"> 59 <span class="label label-success " 60 style="text-shadow:2px 2px black;"> 61 @Model.User.currentUser.FullName 62 </span> 63 </h4> 64 </li> 65 </ul>
Note: See TracChangeset
for help on using the changeset viewer.