<%@ 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.Components" %>
<%@ Import Namespace="CommunityServer.Controls" %>
<div class="CommonContentArea">
<div class="CommonContent">
<asp:repeater id="Ratings" runat="server">
  <headertemplate>
    <table cellpadding="0" cellspacing="0" width="100%">
      <tr>
        <td class="CommonListHeaderLeftMost">
          <CS:ResourceLabel runat="server" ResourceName="ThreadRatingSummary_RatedBy" />
        </td>
        <td class="CommonListHeader">
          <CS:ResourceLabel runat="server" ResourceName="ThreadRatingSummary_Rating" />
        </td>
      </tr>
		
  </headertemplate>
  <itemtemplate>
		
      <tr>
        <td class="CommonListCellLeftMost">
	  <a href="javascript:opener.location=('<%# Globals.GetSiteUrls().UserProfile ( ((User) DataBinder.Eval(Container.DataItem, "User")).Username ) %>'); self.close();"><%# ((User) DataBinder.Eval(Container.DataItem, "User")).DisplayName %></a>
        </td>
        <td class="CommonListCell">
          <CSD:RatePost IsReadOnly="true" EnableDetails="false" CurrentRating='<%# double.Parse( DataBinder.Eval(Container.DataItem, "Value").ToString()) %>' CurrentVotes="1" runat="server" CssClass="CommonRateControl" ReadOnlyCssClass="CommonRateControlReadOnly" ActiveCssClass="CommonRateControlActive" ImagesBaseUrl="~/Themes/default/images/common/" />
        </td>
      </tr>
		
  </itemtemplate>
  <footertemplate>
		
	</table>

	<div class="CommonFormField">
          <a href="javascript:self.close();" class="CommonTextButton"><CS:ResourceLabel runat="server" ResourceName="Close_Window" /></a>
         
	</div>		
  </footertemplate>
</asp:repeater>
</div>
</div>