refactoring

This commit is contained in:
Paul Schneider
2014-10-08 10:47:40 +02:00
parent 347ffc8a5a
commit b5d19c5da6
38 changed files with 149 additions and 117 deletions

View File

@ -0,0 +1,17 @@
<%@ Page Title="User List" Language="C#" Inherits="System.Web.Mvc.ViewPage<System.Web.Security.MembershipUserCollection>" MasterPageFile="~/Models/App.master" %>
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
<ul>
<%foreach (MembershipUser user in Model){ %>
<li><%=user.UserName%> <%=user.Email%> <%=(!user.IsApproved)?"(Not Approuved)":""%> <%=user.IsOnline?"Online":"Offline"%>
<% if (Roles.IsUserInRole("Admin")) { %>
<%= Html.ActionLink("Supprimer","RemoveUserQuery", new { username = user.UserName }, new { @class="actionlink" } ) %>
<% } %>
</li>
<% }%>
</ul>
</asp:Content>