<%@ Control Language="C#" %>
<%@ Register TagPrefix="CS" Namespace="CommunityServer.Controls" Assembly="CommunityServer.Controls" %>
<%@ Register TagPrefix="CSD" Namespace="CommunityServer.Discussions.Controls" Assembly="CommunityServer.Discussions" %>
<%@ Import Namespace="CommunityServer.Controls" %>
<%@ Import Namespace="CommunityServer.Components" %>
<%@ Import Namespace="CommunityServer.Discussions.Components" %>
<%@ Import Namespace="CommunityServer.Discussions.Controls" %>
               
<asp:Repeater EnableViewState="false" runat="server" id="forumGroupRepeater">
	<ItemTemplate>
		<div class="CommonListArea">
		<h4 class="CommonListTitle"><%# DataBinder.Eval(Container.DataItem, "Name") %></h4>
		<table width="100%" cellpadding="0" cellspacing="0" border="0">
			<thead>
			<tr> 
				<th class="CommonListHeaderLeftMost"><CS:ResourceLabel runat="server" ResourceName="ForumGroupView_Moderation_Column_Forum" /></td>
				<th class="CommonListHeader"><CS:ResourceLabel runat="server" ResourceName="ForumGroupView_Moderation_Column_PostsToModerate" /></td>
			</tr>
			</thead>
			<tbody>

			<CSD:ForumRepeater GroupID='<%# DataBinder.Eval(Container.DataItem, "GroupID") %>' Mode="Moderator" HideForums='<%# DataBinder.Eval(Container.DataItem, "HideSections") %>' runat="server">
				<ItemTemplate>
					<tr>
						<td class="CommonListCellLeftMost" width="75%">
							<div style="font-weight: bold;"><%# DataBinder.Eval(Container.DataItem, "Name") %></div>
							<%# DataBinder.Eval(Container.DataItem, "Description") %><%# ForumFormatter.FormatSubForum( (Forum) Container.DataItem ) %>
						</td>
						<td class="CommonListCell" width="25%">
							<a href="<%# Globals.GetSiteUrls().ModerateForum( ((Forum) Container.DataItem).SectionID ) %>"><%# string.Format(ResourceManager.GetString("ForumGroupView_Moderation_Count"), DataBinder.Eval(Container.DataItem, "PostsToModerate" )) %></a>
						</td>
					</tr>
				</ItemTemplate>
			</CSD:ForumRepeater>
		
			</tbody>
		</table>
		</div>
	</ItemTemplate>
</asp:Repeater>
