Line | |
---|
1 |
|
---|
2 | @model HeuristicLab.Clients.Hive.WebJobManager.ViewModels.NavbarViewModel
|
---|
3 |
|
---|
4 | <ul class="nav nav-tabs animated fadeIn"
|
---|
5 | >
|
---|
6 |
|
---|
7 | <li role="presentation"
|
---|
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 |
|
---|
23 | </li>
|
---|
24 | <li role="presentation"
|
---|
25 | class="@(Model.Active == "User" ? "active" : "")
|
---|
26 | @(Model.User.HasUserAdminAccess() == false ? "disabled" : "")
|
---|
27 | ">
|
---|
28 | @if (!Model.User.OKBOnly && Model.User.HasUserAdminAccess())
|
---|
29 | {
|
---|
30 | <a asp-controller="User"
|
---|
31 | asp-action="Index"
|
---|
32 | accesskey="u">
|
---|
33 | User management
|
---|
34 | </a>
|
---|
35 | }
|
---|
36 | else
|
---|
37 | {
|
---|
38 | <a> User management</a>
|
---|
39 | }
|
---|
40 |
|
---|
41 | </li>
|
---|
42 | <li role="presentation"
|
---|
43 | class="@(Model.Active == "Resource" ? "active" : "")
|
---|
44 | @(Model.User.hasResourceAdminAccess() == false ? "disabled" : "")
|
---|
45 | ">
|
---|
46 | @if (!Model.User.OKBOnly && Model.User.hasResourceAdminAccess())
|
---|
47 | {
|
---|
48 | <a asp-controller="Resource"
|
---|
49 | asp-action="Index"
|
---|
50 | accesskey="r">
|
---|
51 | Resources
|
---|
52 | </a>
|
---|
53 | }
|
---|
54 | else
|
---|
55 | {
|
---|
56 | <a> Resources</a>
|
---|
57 | }
|
---|
58 |
|
---|
59 | </li>
|
---|
60 | <li role="presentation"
|
---|
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"
|
---|
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"
|
---|
97 | class="pull-right ">
|
---|
98 |
|
---|
99 | <a asp-controller="Home"
|
---|
100 | asp-action="Logout"
|
---|
101 | accesskey="l"
|
---|
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.