<%@ 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)%>
<% } %>