Rev | Line | |
---|
[13733] | 1 |
|
---|
| 2 | @model HeuristicLab.Clients.Hive.WebJobManager.ViewModels.NavbarViewModel
|
---|
| 3 |
|
---|
[13860] | 4 | <ul class="nav nav-tabs animated fadeIn"
|
---|
| 5 | >
|
---|
[13854] | 6 |
|
---|
[13847] | 7 | <li role="presentation"
|
---|
[13854] | 8 | class="@(Model.Active == "Job" ? "active" : "")
|
---|
| 9 | @(Model.User.OKBOnly ? "disabled" : "")">
|
---|
| 10 | @if (!Model.User.OKBOnly)
|
---|
| 11 | {
|
---|
| 12 | <a asp-controller="Job"
|
---|
| 13 | accesskey="j"
|
---|
| 14 | asp-action="Index">
|
---|
| 15 | Job management
|
---|
| 16 | </a>
|
---|
| 17 | }
|
---|
| 18 | else
|
---|
| 19 | {
|
---|
| 20 | <a>Job management</a>
|
---|
| 21 | }
|
---|
| 22 |
|
---|
[13847] | 23 | </li>
|
---|
[13733] | 24 | <li role="presentation"
|
---|
[13847] | 25 | class="@(Model.Active == "User" ? "active" : "")
|
---|
| 26 | @(Model.User.HasUserAdminAccess() == false ? "disabled" : "")
|
---|
| 27 | ">
|
---|
[13854] | 28 | @if (!Model.User.OKBOnly && Model.User.HasUserAdminAccess())
|
---|
[13847] | 29 | {
|
---|
| 30 | <a asp-controller="User"
|
---|
[13848] | 31 | asp-action="Index"
|
---|
| 32 | accesskey="u">
|
---|
[13847] | 33 | User management
|
---|
| 34 | </a>
|
---|
| 35 | }
|
---|
| 36 | else
|
---|
| 37 | {
|
---|
| 38 | <a> User management</a>
|
---|
| 39 | }
|
---|
| 40 |
|
---|
[13733] | 41 | </li>
|
---|
[13847] | 42 | <li role="presentation"
|
---|
| 43 | class="@(Model.Active == "Resource" ? "active" : "")
|
---|
| 44 | @(Model.User.hasResourceAdminAccess() == false ? "disabled" : "")
|
---|
| 45 | ">
|
---|
[13854] | 46 | @if (!Model.User.OKBOnly && Model.User.hasResourceAdminAccess())
|
---|
[13847] | 47 | {
|
---|
[13733] | 48 | <a asp-controller="Resource"
|
---|
[13848] | 49 | asp-action="Index"
|
---|
| 50 | accesskey="r">
|
---|
[13733] | 51 | Resources
|
---|
| 52 | </a>
|
---|
[13847] | 53 | }
|
---|
| 54 | else
|
---|
| 55 | {
|
---|
| 56 | <a> Resources</a>
|
---|
| 57 | }
|
---|
| 58 |
|
---|
| 59 | </li>
|
---|
| 60 | <li role="presentation"
|
---|
[13854] | 61 | class="@(Model.Active == "Query" ? "active" : "")
|
---|
| 62 | @(Model.User.hasOKBAccess() == false ? "disabled" : "")
|
---|
| 63 | ">
|
---|
| 64 | @if (Model.User.OKBOnly || Model.User.hasOKBAccess())
|
---|
| 65 | {
|
---|
| 66 | <a asp-controller="Query"
|
---|
| 67 | asp-action="Index"
|
---|
| 68 | accesskey="q">
|
---|
| 69 | OKB Query
|
---|
| 70 | </a>
|
---|
| 71 | }
|
---|
| 72 | else
|
---|
| 73 | {
|
---|
| 74 | <a>OKB Query</a>
|
---|
| 75 | }
|
---|
| 76 |
|
---|
| 77 | </li>
|
---|
| 78 | <li role="presentation"
|
---|
[13862] | 79 | class="@(Model.Active == "OKBAdmin" ? "active" : "")
|
---|
| 80 | @(Model.User.hasOKBAdminAccess() == false ? "disabled" : "")
|
---|
| 81 | ">
|
---|
| 82 | @if ( Model.User.hasOKBAdminAccess())
|
---|
| 83 | {
|
---|
| 84 | <a asp-controller="OkbManagement"
|
---|
| 85 | asp-action="Index"
|
---|
| 86 | accesskey="q">
|
---|
| 87 | OKB management
|
---|
| 88 | </a>
|
---|
| 89 | }
|
---|
| 90 | else
|
---|
| 91 | {
|
---|
| 92 | <a>OKB management</a>
|
---|
| 93 | }
|
---|
| 94 |
|
---|
| 95 | </li>
|
---|
| 96 | <li role="presentation"
|
---|
[13847] | 97 | class="pull-right ">
|
---|
| 98 |
|
---|
| 99 | <a asp-controller="Home"
|
---|
| 100 | asp-action="Logout"
|
---|
[13848] | 101 | accesskey="l"
|
---|
[13847] | 102 | class="text-danger">
|
---|
| 103 | Logout
|
---|
| 104 | <i class="fa fa-sign-out "></i>
|
---|
| 105 | </a>
|
---|
| 106 | </li>
|
---|
| 107 | <li class="pull-right">
|
---|
| 108 | <h4 style="margin-bottom:0;">
|
---|
| 109 | <span class="label label-success "
|
---|
| 110 | style="text-shadow:2px 2px black;">
|
---|
| 111 | @Model.User.currentUser.FullName
|
---|
| 112 | </span>
|
---|
| 113 | </h4>
|
---|
| 114 | </li>
|
---|
| 115 | </ul> |
---|
Note: See
TracBrowser
for help on using the repository browser.