From cdc61eb4ea5309769ad4db84d92594e4dc3dff67 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 20 Mar 2017 16:45:17 -0400 Subject: Initial commit (azure deploy test) --- Project-Unite/Views/Moderator/Bans.cshtml | 73 +++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 Project-Unite/Views/Moderator/Bans.cshtml (limited to 'Project-Unite/Views/Moderator/Bans.cshtml') diff --git a/Project-Unite/Views/Moderator/Bans.cshtml b/Project-Unite/Views/Moderator/Bans.cshtml new file mode 100644 index 0000000..90e20fc --- /dev/null +++ b/Project-Unite/Views/Moderator/Bans.cshtml @@ -0,0 +1,73 @@ +@model Project_Unite.Models.ModeratorBanListViewModel +@{ + ViewBag.Moderator = true; + ViewBag.Title = "Bans"; +} + +

Bans

+ + + +
+
+

User bans

+

Below is a list of all user bans. User bans prevent users from logging into their accounts.

+ + + + + + + + + @foreach(var u in Model.UserBans.OrderByDescending(x=>x.BannedAt)) + { + + + + + + + } +
UserBannerTimestampActions
@Html.UserLink(u.Id)@Html.UserLink(u.BannedBy)@u.BannedAt + @if(ACL.Granted(User.Identity.Name, "CanIssueBan")) + { + if(ACL.CanManageRole(User.Identity.Name, u.HighestRole.Id)) + { + @Html.ActionLink("Unban", "Unban", "Moderator", new { id=u.Id}, new { @class="btn btn-default"}) + } + } + +
+
+
+

IP address bans

+

Below is a list of IP address bans on the site. IP bans prevent users with a certain IP address from even attempting to access the website and multi-user domain by sending back "Forbidden" responses and denying connection.

+
BE EXTREMELY CAUTIOUS.
+

The system does NOT associate IP addresses with usernames - it can't. If you are unsure who's IP address you are unbanning, contact someone who is sure before taking any action. We have no idea what that computer or network is capable of.

+ + + + + + + + + @foreach (var u in Model.IPBans) + { + + + + + } +
UserBannerTimestampActions
@u.Address + @if (ACL.Granted(User.Identity.Name, "CanIssueIPBan")) + { + @Html.ActionLink("Unban", "UnbanIP", "Moderator", new { id = u.Id }, new { @class = "btn btn-danger" }) + } +
+
+
\ No newline at end of file -- cgit v1.2.3