yavsc/web/Views/Admin/UserList.aspx
Paul Schneider 679a249faf * style.css: Gives a margin to the login panel
* BlogsController.cs: Simplifies the code and method

* UserList.aspx: Displays the creation date

* BlogEntryCollection.cs: adds xml doc

* UUBlogEntryCollection.cs:
* UUTBlogEntryCollection.cs: fixes a creation from a post array
2015-08-05 20:17:50 +02:00

16 lines
852 B
Text

<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<System.Web.Security.MembershipUserCollection>" MasterPageFile="~/Models/App.master" %>
<asp:Content ContentPlaceHolderID="init" ID="init1" runat="server">
<% Page.Title = LocalizedText.User_List; %>
</asp:Content>
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
<ul>
<%foreach (MembershipUser user in Model){ %>
<li><%=user.UserName%> (created <%=user.CreationDate.ToString("D")%>) <%=user.Email%> <%=(user.IsApproved)?"":"("+LocalizedText.Not_Approuved+")"%> <%=user.IsOnline?LocalizedText.Online:LocalizedText.Offline%>
<% if (Roles.IsUserInRole("Admin")) { %>
<%= Html.ActionLink(LocalizedText.Remove,"RemoveUser", new { username = user.UserName }, new { @class="actionlink" } ) %>
<% } %>
</li><% }%>
</ul>
</asp:Content>