- Timestamp:
- 05/13/16 13:17:52 (9 years ago)
- Location:
- branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/Shared/Navbar.cshtml
r13847 r13848 6 6 class="@(Model.Active == "Job" ? "active" : "")"> 7 7 <a asp-controller="Job" 8 accesskey="j" 8 9 asp-action="Index"> 9 10 Job management … … 17 18 { 18 19 <a asp-controller="User" 19 asp-action="Index"> 20 asp-action="Index" 21 accesskey="u"> 20 22 User management 21 23 </a> … … 34 36 { 35 37 <a asp-controller="Resource" 36 asp-action="Index"> 38 asp-action="Index" 39 accesskey="r"> 37 40 Resources 38 41 </a> … … 50 53 <a asp-controller="Home" 51 54 asp-action="Logout" 55 accesskey="l" 52 56 class="text-danger"> 53 57 Logout -
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/User/Index.cshtml
r13847 r13848 309 309 <div class="form-group"> 310 310 <label class="col-sm-3 control-label"> 311 @Model.SelectedUserRoles.Count Roles 311 @Model.SelectedUserRoles.Count Roles <br /> 312 @if (Model.SelectedUserRoles.Where(x => x.Name == "Hive User").Count() != 0) 313 { 314 if (Model.SelectedUserRoles.Where(x => x.Name == "AccessService Administrator").Count() != 0) 315 { 316 if (Model.SelectedUserRoles.Where(x => x.Name == "Hive Administrator").Count() != 0) 317 { 318 <span style="color:forestgreen">Job management<br/>User management<br />Resources</span> 319 320 } 321 else 322 { 323 <span style="color:forestgreen">Job management<br />User management</span> 324 325 } 326 } 327 else 328 { 329 <span style="color:forestgreen">Job management</span> 330 331 } 332 333 } 334 else 335 { 336 <span style="color:darkred">No access to Hive</span> 337 338 } 312 339 </label> 340 313 341 <div class="col-sm-8 control-label" style="text-align:left"> 314 342 @if (Model.SelectedUserRoles.Count > 0) … … 368 396 onclick="triggerSave()"> 369 397 @role.Name 398 <span style="color:forestgreen"> 399 @(role.Name == "Hive User" ? " (access to Hive and job manager)" : "") 400 @(role.Name == "Hive Administrator" ? " (access to resources)" : "") 401 @(role.Name == "AccessService Administrator" ? " (access to user manager)" : "") 402 </span> 370 403 </label> 371 404 </div> -
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/User/Roles.cshtml
r13847 r13848 66 66 onclick="showRole()"> 67 67 @role.Name 68 <span style="color:forestgreen"> 69 @(role.Name == "Hive User" ? " (Hive + job manager)" : "") 70 @(role.Name == "Hive Administrator" ? " (Resources)" : "") 71 @(role.Name == "AccessService Administrator" ? " (User manager)" : "") 72 </span> 68 73 </a> 69 74 } … … 101 106 @if (Model.SelectedRole.Name != "") 102 107 { 103 <i class="fa fa-gavel "></i> @Model.SelectedRole.Name; 108 <i class="fa fa-gavel "></i> @Model.SelectedRole.Name 109 <span style="color:forestgreen"> 110 @(Model.SelectedRole.Name == "Hive User" ? " (access to Hive and job manager)" : "") 111 @(Model.SelectedRole.Name == "Hive Administrator" ? " (access to resources)" : "") 112 @(Model.SelectedRole.Name == "AccessService Administrator" ? " (access to user manager)" : "") 113 </span> 114 104 115 } 105 116 else
Note: See TracChangeset
for help on using the changeset viewer.