summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-05-08 12:47:53 -0400
committerMichael <[email protected]>2017-05-08 12:47:53 -0400
commitc018086ad6c5431047930bc8401f1b97d7ece73f (patch)
treecfb399829e18eff7ba68eff5c007ac3a7f3fb9c5
parent04b4862ab778d75bc15a1c53a28c339deb26d768 (diff)
downloadproject-unite-c018086ad6c5431047930bc8401f1b97d7ece73f.tar.gz
project-unite-c018086ad6c5431047930bc8401f1b97d7ece73f.tar.bz2
project-unite-c018086ad6c5431047930bc8401f1b97d7ece73f.zip
show acp user details in a modal
-rw-r--r--Project-Unite/Project-Unite.csproj2
-rw-r--r--Project-Unite/Views/Admin/Index.cshtml24
2 files changed, 23 insertions, 3 deletions
diff --git a/Project-Unite/Project-Unite.csproj b/Project-Unite/Project-Unite.csproj
index 11604fa..dd41d50 100644
--- a/Project-Unite/Project-Unite.csproj
+++ b/Project-Unite/Project-Unite.csproj
@@ -754,7 +754,7 @@
<AutoAssignPort>True</AutoAssignPort>
<DevelopmentServerPort>53520</DevelopmentServerPort>
<DevelopmentServerVPath>/</DevelopmentServerVPath>
- <IISUrl>https://localhost:44388/</IISUrl>
+ <IISUrl>http://localhost:8080/</IISUrl>
<NTLMAuthentication>False</NTLMAuthentication>
<UseCustomServer>False</UseCustomServer>
<CustomServerUrl>
diff --git a/Project-Unite/Views/Admin/Index.cshtml b/Project-Unite/Views/Admin/Index.cshtml
index 9ec5202..5037ba3 100644
--- a/Project-Unite/Views/Admin/Index.cshtml
+++ b/Project-Unite/Views/Admin/Index.cshtml
@@ -207,7 +207,27 @@ git clone https://github.com/MichaelTheShifter/Project-Unite
-
+ @foreach (var user in db.Users.ToArray())
+ {
+ <div class="modal fade" id="[email protected]">
+ <div class="modal-dialog" role="document">
+ <div class="modal-content">
+ <div class="modal-header">
+ <h5 class="modal-title">Users</h5>
+ <button type="button" class="close" data-dismiss="modal" aria-label="Close">
+ <span aria-hidden="true">&times;</span>
+ </button>
+ </div>
+ <div class="modal-body">
+ @Html.Partial("~/Views/Moderator/UserDetails.cshtml", user)
+ </div>
+ <div class="modal-footer">
+ <button type="button" class="btn btn-primary" data-dismiss="modal" data-target="#[email protected]">Close</button>
+ </div>
+ </div>
+ </div>
+ </div>
+ }
@*USERS*@
@@ -251,7 +271,7 @@ git clone https://github.com/MichaelTheShifter/Project-Unite
</td>
<td>
<a href="@Url.Action("ViewProfile", "Profiles", new { id = user.DisplayName })" class="btn btn-default"><span class="glyphicon glyphicon-user"></span> View Profile</a>
- <a href="@Url.Action("UserDetails", "Moderator", new {id=user.DisplayName})" class="btn btn-warning"><span class="glyphicon glyphicon-wrench"></span> Moderate</a>
+ <a data-toggle="modal" href="#[email protected]" class="btn btn-warning"><span class="glyphicon glyphicon-wrench"></span> Moderate</a>
</td>
</tr>
}