<%@ Control Language="c#" %>
<%@ Import Namespace="CommunityServer.Components" %>
<%@ Register TagPrefix="CS" Namespace="CommunityServer.Controls" Assembly="CommunityServer.Controls" %>
<%@ Register TagPrefix="CSD" Namespace="CommunityServer.Discussions.Controls" Assembly="CommunityServer.Discussions" %>
<%@ Register TagPrefix="CSDP" Namespace="CommunityServer.Discussions.Controls.PostDisplay" Assembly="CommunityServer.Discussions" %>
<%@ Register TagPrefix="ComponentArt" Namespace="ComponentArt.Web.UI" Assembly="ComponentArt.Web.UI" %>
<%@ Import Namespace="CommunityServer.Discussions.Controls" %>
<%@ Import Namespace="CommunityServer.Discussions.Components" %>
<%@ Import Namespace="CommunityServer.Components" %>
<%@ Import Namespace="CommunityServer.Controls" %>
<%@ Import Namespace="CommunityServer" %>

<asp:Repeater id="PostRepeater" Runat="server">
<HeaderTemplate>
	<ul class="ForumPostList">
</HeaderTemplate>
<ItemTemplate>
	<li>
	<div class="ForumPostArea" >
		<h4 class="ForumPostHeader">
			<table cellpadding="0" cellspacing="0" border="0" width="100%">
				<tr valign="middle">
					<td align="left">
						<h4 class="ForumPostTitle">
							<CS:ThemedImage runat="server" border="0" ImageUrl="/images/icon_post_show.gif" id="Themedimage1" />
							<asp:Literal runat="server" id="Emoticon" />
							<asp:HyperLink runat="server" id="Subject" />
						</h4>
					</td>
					<td align="right">
						<a runat="server" id="PostAnchor"></a>&nbsp;<%# Formatter.FormatAgoDate (((ForumPost) Container.DataItem).PostDate) %></td>
					</td>
				</tr>
			</table>
		</h4>
		<div class="ForumPostBodyArea">
			<div class="ForumPostManagementArea">
				<table width="100%" cellpadding="0" cellspacing="0" border="0">
				<tr>
					<td rowspan="2" valign="top">
						<div class="ForumPostUserAvatar"><CS:UserAvatar runat="server" Border="0" PadImage="False" id="Avatar" /></div>
					</td>				
					<td width="70%">
						<div class="ForumPostUserName">
							<asp:Literal runat="server" id="Username" />
						</div>
					</td>
					<td align="right" rowspan="2" valign="top" width="30%">
						<div class="ForumPostRoleIcons">
							<CS:RoleIcons runat="server" id="RoleIcon" EnablePadding="false" />
						</div>
						<div class="ForumPostThreadStatus">
						</div>
					</td>
				</tr>
				<tr valign="bottom">
				<td>
					<ul class="ForumPostUserPropertyList">
						<li>
							<CS:UserAttribute FormatString="{0}" Attribute="Joined" runat="server" id="JoinedAttribute" />
						</li>
						<li>
							<CS:UserAttribute FormatString="{0}" Attribute="Location" runat="server" id="LocationAttribute" />
						</li>
						<li>
							<CS:UserAttribute FormatString="{0}" Attribute="Posts" runat="server" id="PostsAttribute" />
						</li>
						<li>
							<CS:UserAttribute FormatString="{0}" Attribute="Points" runat="server" id="PointsAttribute" />
						</li>
						<li>
							<CS:PostIcons runat="server" id="PostIcon" />
						</li>
					</ul>
						
					<div class="ForumPostButtons">
					</div>
				</td>
				</tr>
				</table>
			</div>
			<div class="ForumPostAttachment">
			</div>
			<table cellpadding="0" cellspacing="0" border="0" width="100%" style="table-layout: fixed;">
				<tr><td>
				<div class="ForumPostContentArea">
				<div class="ForumPostContentText" id="PostViewWrapper" runat="server">
					<CSDP:TextPost runat="server" id="TextPost" />
				</div>
				</div>
				</td></tr>
			</table>
		</div>
		<div class="ForumPostFooterArea">
			<ul class="ForumPostStatistics">
				<li><asp:Literal runat="server" id="PostPoints" /></li>
				<li><asp:Literal runat="server" id="PostIPAddress" /></li>
				<li><asp:Hyperlink runat="server" id="ReportLink" /></li>
			</ul>
		</div>
	</div>
	</li>
</ItemTemplate>
<FooterTemplate>
	</ul>
</FooterTemplate>
</asp:Repeater>