@using HeuristicLab.Clients.Hive.WebJobManager.ViewModels.User; @model UserViewModel
@Html.Partial("Navbar", new HeuristicLab.Clients.Hive.WebJobManager.ViewModels.NavbarViewModel("User"))
@Model.message
@if (Model.users.Count == 0) {

No users found

} else {

@if (Model.SelectedUser.Id != Guid.Empty) { @Model.SelectedUser.UserName; } else { @("Add new user") }

@if (Model.SelectedUser.Id != Guid.Empty) {
Last change: @Model.SelectedUser.LastPasswordChangedDate.ToShortDateString()
@if (Model.SelectedUserSubscriptions.Count > 0) { @foreach (var g in Model.SelectedUserSubscriptions) {

@g.Name

} } else {

Not a member of any groups

}
}

Groups

@foreach (var group in Model.ugroups) {
}
@if (Model.SelectedUser.Id != Guid.Empty) {
@if (Model.SelectedUserRoles.Count > 0) { @foreach (var r in Model.SelectedUserRoles) {

@r.Name

} } else {

User has no roles

}
}

Roles

@foreach (var role in Model.roles) {
}
@if (Model.SelectedUser.Id != Guid.Empty) { }
}