1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-11 15:52:25 -05:00

vpn check updates, fixed some issues,

"masked" status is now sensitive
discord link in webfront if configured
This commit is contained in:
RaidMax
2018-03-13 16:30:22 -05:00
parent df3bd05f87
commit ae4fa23884
27 changed files with 235 additions and 119 deletions

View File

@ -50,7 +50,7 @@ namespace WebfrontCore.Controllers
{
Key = "Masked",
Value = client.Masked ? "Is" : "Is not",
Sensitive = false,
Sensitive = true,
When = DateTime.MinValue
});
@ -61,7 +61,12 @@ namespace WebfrontCore.Controllers
.OrderByDescending(m => m.When)
.ToList();
ViewBag.Title = clientDto.Name;
ViewBag.Title = clientDto.Name.Substring(clientDto.Name.Length - 1).ToLower()[0] == 's' ?
clientDto.Name + "'" :
clientDto.Name + "'s";
ViewBag.Title += " Profile";
ViewBag.Description = $"Client information for {clientDto.Name}";
ViewBag.Keywords = $"IW4MAdmin, client, profile, {clientDto.Name}";
return View("Profile/Index", clientDto);
}
@ -84,7 +89,10 @@ namespace WebfrontCore.Controllers
});
}
ViewBag.Title = "Current Privileged Users";
ViewBag.Title = "Privileged Clients";
ViewBag.Description = "List of all privileged clients on IW4MAdmin";
ViewBag.Keywords = "IW4MAdmin, privileged, admins, clients, administrators";
return View("Privileged/Index", adminsDict);
}
@ -102,7 +110,7 @@ namespace WebfrontCore.Controllers
})
.ToList();
ViewBag.Name = $"Clients Matching \"{clientName}\"";
ViewBag.Title = $"Clients Matching \"{clientName}\"";
return View("Find/Index", clientsDto);
}
}