diff options
| author | Michael <[email protected]> | 2017-03-20 16:45:17 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-03-20 16:45:17 -0400 |
| commit | cdc61eb4ea5309769ad4db84d92594e4dc3dff67 (patch) | |
| tree | a8297a7aecc4376f07a497a5e02ab5ff165bfbd3 /Project-Unite/Views/Admin/Users.cshtml | |
| parent | d9f475e1f33bbf39ca0d79d7a6b0c2fd501b4f2d (diff) | |
| download | project-unite-cdc61eb4ea5309769ad4db84d92594e4dc3dff67.tar.gz project-unite-cdc61eb4ea5309769ad4db84d92594e4dc3dff67.tar.bz2 project-unite-cdc61eb4ea5309769ad4db84d92594e4dc3dff67.zip | |
Initial commit (azure deploy test)
Diffstat (limited to 'Project-Unite/Views/Admin/Users.cshtml')
| -rw-r--r-- | Project-Unite/Views/Admin/Users.cshtml | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/Project-Unite/Views/Admin/Users.cshtml b/Project-Unite/Views/Admin/Users.cshtml new file mode 100644 index 0000000..a9830c5 --- /dev/null +++ b/Project-Unite/Views/Admin/Users.cshtml @@ -0,0 +1,45 @@ +@model IEnumerable<Project_Unite.Models.ApplicationUser> +@{ + ViewBag.Admin = true; + ViewBag.Title = "Users"; +} + +<h2>Users</h2> + +<p>Below is a list of all users in the database.</p> + +<table class="table"> + <tr> + <th style="width:85%">User</th> + <th>Actions</th> + </tr> + @foreach (var user in Model) + { + <tr> + <td>@Html.UserLink(user.Id)</td> + <td> + + @Html.ActionLink("User details", "UserDetails", "Moderator", new { id = user.DisplayName }, new { @class = "btn btn-default" }) + @if (ACL.Granted(User.Identity.Name, "CanAnonymizeUser")) + { + <a href="#" class="btn btn-danger" data-toggle="modal" data-target="#u_anonymize"><span class="glyphicon glyphicon-warning-sign"></span> Anonymize this user</a> + <div class="modal fade in"> + <div class="modal-content" id="#u_anonymize"> + <div class="modal-header"> + <a class="close" data-dissmiss="modal"></a> + <h2>Anonymize user</h2> + </div> + <div class="modal-body"> + <p>Anonymizing this user will prevent them from ever logging in, and will purge their profile data. Continue?</p> + </div> + <div class="modal-footer"> + <a class="btn btn-default" data-dismiss="modal">No</a> + @Html.ActionLink("Yes", "AnonymizeUser", "Admin", new { id = user.Id }, new { @class = "btn btn-danger" }) + </div> + </div> + </div> + } + </td> + </tr> + } +</table>
\ No newline at end of file |
