<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %> <%@ Import Namespace="VideoGameQuotes.Api" %>

<%: Model.User.Username ?? "" %> [<%: Model.User.IpAddress %>]

Created
<%: Model.User.Created %>
Group
<%: Model.User.Group %>
<% if (Model.CurrentUser.Group == UserGroup.Admin) { %>
<%= Html.ActionLink("edit", "edit", "User", new { usernameOrIp = Model.User.Username ?? Model.User.IpAddress }, null) %> | <%= Html.ActionLink("delete", "delete", "User", new { id = Model.User.Id }, null)%> | <%= Html.ActionLink("ban", "ban", "User", new { id = Model.User.Id }, null)%>
<% } %>