@using HeuristicLab.Clients.Hive.WebJobManager.ViewModels.User; @using HeuristicLab.Clients.Access; @model UserViewModel
@Html.Partial("Navbar", new HeuristicLab.Clients.Hive.WebJobManager.ViewModels.NavbarViewModel("User", Model.currentUser)) @Html.Partial("_ErrorMessage", Model.message)

@if (Model.SelectedRole.Name != "") { @Model.SelectedRole.Name @(Model.SelectedRole.Name == "Hive User" ? " (access to Hive and job manager)" : "") @(Model.SelectedRole.Name == "Hive Administrator" ? " (access to resources)" : "") @(Model.SelectedRole.Name == "AccessService Administrator" ? " (access to user manager)" : "") @(Model.SelectedRole.Name == "OKB User" ? " (access to OKB Query)" : "") @(Model.SelectedRole.Name == "OKB Administrator" ? " (access to OKB manager)" : "") } else { @("Add new role") }

@if (Model.SelectedRole.Name == "") {
} else {
@foreach (var us in Model.SelectedRoleEnrolled) {

@(((User)us).UserName) (@(((User)us).FullName))

} @if (Model.SelectedRoleEnrolled.Count == 0) {

There are currently no users who have this role

}
}