Last change
on this file since 13847 was
13847,
checked in by jlodewyc, 8 years ago
|
#2582 Security access implemented, directory renaming and choosing, adding more partials
|
File size:
1.8 KB
|
Line | |
---|
1 |
|
---|
2 | @model HeuristicLab.Clients.Hive.WebJobManager.ViewModels.NavbarViewModel
|
---|
3 |
|
---|
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>
|
---|
12 | <li role="presentation"
|
---|
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 |
|
---|
28 | </li>
|
---|
29 | <li role="presentation"
|
---|
30 | class="@(Model.Active == "Resource" ? "active" : "")
|
---|
31 | @(Model.User.hasResourceAdminAccess() == false ? "disabled" : "")
|
---|
32 | ">
|
---|
33 | @if (Model.User.hasResourceAdminAccess())
|
---|
34 | {
|
---|
35 | <a asp-controller="Resource"
|
---|
36 | asp-action="Index">
|
---|
37 | Resources
|
---|
38 | </a>
|
---|
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
TracBrowser
for help on using the repository browser.