<%@ 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.Discussions.Components" %>

<div class="CommonInlineMessageArea">
	<h4 class="CommonInlineMessageTitle">
		<a href="<%= Globals.GetSiteUrls().WhoIsOnline%>"><CS:ResourceLabel runat="server" ResourceName="WhoIsOnline_Current" id="Resourcelabel1"/></a>
	</h4>
	<div class="CommonInlineMessageContent">
		<CS:ResourceLabel runat="server" ResourceName="WhoIsOnline_Inline1" />
		<asp:Literal id="GuestUsers" Runat="server"/>
		<asp:Literal id="UsersOnlineCount" runat="server" />
		<asp:Repeater Id="UsersOnline" Runat="server">
			<HeaderTemplate>- </HeaderTemplate>
			<ItemTemplate><a title='<%# DataBinder.Eval(Container.DataItem, "Location") %>' 
					class='<%# ( (bool) DataBinder.Eval(Container.DataItem, "User.IsAdministrator") ) ? "" : "" %><%#  ( (bool) DataBinder.Eval(Container.DataItem, "User.IsModerator") && !(bool) DataBinder.Eval(Container.DataItem, "User.IsAdministrator") ) ? "" : "" %>'
					href='<%# Globals.GetSiteUrls().UserProfile( (string) DataBinder.Eval(Container.DataItem, "Username")) %>'><%# DataBinder.Eval(Container.DataItem, "User.DisplayName")%></a></ItemTemplate><SeparatorTemplate>, </SeparatorTemplate>
		</asp:Repeater>
	</div>
</div>
