<%@ Control Language="C#" AutoEventWireup="true" Inherits="CMSModules_Forums_Controls_Layouts_Flat_Thread" CodeFile="Thread.ascx.cs" %> <%@ Import Namespace="CMS.SettingsProvider" %> <%@ Register Src="~/CMSModules/Forums/Controls/ForumViewModeSelector.ascx" TagName="ForumViewModeSelector" TagPrefix="cms" %> <%@ Register Src="~/CMSModules/Forums/Controls/AttachmentDisplayer.ascx" TagName="AttachmentDisplayer" TagPrefix="cms" %> <%@ Register Src="~/CMSModules/AbuseReport/Controls/InlineAbuseReport.ascx" TagName="AbuseReport" TagPrefix="cms" %> <%@ Register Src="~/CMSModules/Forums/Controls/ForumBreadcrumbs.ascx" TagName="ForumBreadcrumbs" TagPrefix="cms" %> <%@ Register Src="~/CMSModules/Forums/Controls/ThreadMove.ascx" TagName="ThreadMove" TagPrefix="cms" %> <%@ Register Namespace="CMS.Forums" Assembly="CMS.Forums" TagPrefix="cms" %>
<%=HTMLHelper.HTMLEncode(ResHelper.LocalizeString(ForumContext.CurrentForum.ForumDisplayName))%> <%=HTMLHelper.HTMLEncode(ResHelper.LocalizeString(ForumContext.CurrentForum.ForumDescription))%>
<%#GenerateIndentCode(Container.DataItem, "
")%>
<%#IFCompare(!ValidationHelper.GetBoolean(GetData(Container.DataItem, "PostApproved"), false), " Unapproved", "")%> ">
<%-- OnSite management --%> <%#AdministratorCode(Eval("PostForumID"), "
")%> <%#GetLink(Container.DataItem, ResHelper.GetString("general.approve"), "ActionLink", ForumActionType.Appprove)%> <%#GetLink(Container.DataItem, ResHelper.GetString("forums.approveall"), "ActionLink", ForumActionType.ApproveAll)%> <%#GetLink(Container.DataItem, ResHelper.GetString("general.reject"), "ActionLink", ForumActionType.Reject)%> <%#GetLink(Container.DataItem, ResHelper.GetString("forums.rejectall"), "ActionLink", ForumActionType.RejectAll)%> <%#GetLink(Container.DataItem, ResHelper.GetString("forums.splitthread"), "ActionLink", ForumActionType.SplitThread)%> <%#GetLink(Container.DataItem, ResHelper.GetString("forums.movethread"), "ActionLink", ForumActionType.MoveToTheOtherForum)%> <%#AdministratorCode(Eval("PostForumID"), "
")%>
<%--Avatar--%> <%#AvatarImage(Container.DataItem)%> <%--Badges--%> <%#GetNotEmpty(Eval("BadgeDisplayName"), "
" + Encode(ResHelper.LocalizeString(Convert.ToString(Eval("BadgeDisplayName")))) + "
", "
" + ResHelper.GetString("Forums.PublicBadge") + "
", ForumActionType.Badge)%> <%#GetNotEmpty(Eval("BadgeImageURL"), "
\""
", "", ForumActionType.Badge)%> <%--Send message, Friendship request--%> <%#IFCompare((EnableMessaging || EnableFriendship) && (ValidationHelper.GetInteger(Eval("PostUserID"), 0) > 0), "
", "")%> <%#IFCompare((EnableMessaging) && (ValidationHelper.GetInteger(Eval("PostUserID"), 0) > 0), "" + ResHelper.GetString("sendmessage.sendmessage") + "", "")%> <%#IFCompare((EnableFriendship) && (ValidationHelper.GetInteger(Eval("PostUserID"), 0) > 0), "" + ResHelper.GetString("friends.requestfriendship") + "", "")%> <%#IFCompare((EnableMessaging || EnableFriendship) && (ValidationHelper.GetInteger(Eval("PostUserID"), 0) > 0), "
", "")%>
<%#GenerateAnswerCode(Container.DataItem, "
\""" + ResHelper.GetString("General.AcceptedSolution") + "
")%>
<%#GetUserName(Container.DataItem)%> - <%#CMSContext.ConvertDateTime(ValidationHelper.GetDateTime(Eval("PostTime"), DateTimeHelper.ZERO_TIME), this)%>
  <%#GetLink(Container.DataItem, ResHelper.GetString("Forums_WebInterface_ForumPost.AddPostToFavorites"), "ActionLink", ForumActionType.AddPostToFavorites)%> <%#IFCompare(IsAvailable(Container.DataItem, ForumActionType.IsAnswer), "
" + ResHelper.GetString("Forums_WebInterface_ForumPost.Washelpful"), "")%>   <%#GetLink(Container.DataItem, ResHelper.GetString("general.yes"), "ActionLink", ForumActionType.IsAnswer)%> <%#IFCompare(IsAvailable(Container.DataItem, ForumActionType.IsAnswer), "|", "")%> <%#GetLink(Container.DataItem, ResHelper.GetString("general.no"), "ActionLink", ForumActionType.IsNotAnswer)%> <%#IFCompare(IsAvailable(Container.DataItem, ForumActionType.IsAnswer), "
", "")%>
<%#HTMLHelper.HTMLEncode(Eval("PostSubject").ToString())%>
<%#GetSignatureArea(Container.DataItem, "
", "
")%>
<%#GetLink(Container.DataItem, ResHelper.GetString("Forums_WebInterface_ForumPost.replyLinkText"), "PostActionLink", ForumActionType.Reply)%> <%#Separator(Container.DataItem, "|", 0)%> <%#GetLink(Container.DataItem, ResHelper.GetString("Forums_WebInterface_ForumPost.quoteLinkText"), "PostActionLink", ForumActionType.Quote)%> <%#Separator(Container.DataItem, "|", 1)%> <%#GetLink(Container.DataItem, ResHelper.GetString("Forums_WebInterface_ForumPost.Subscribe"), "PostActionLink", ForumActionType.SubscribeToPost)%>
<%#GetLink(Container.DataItem, ResHelper.GetString("general.edit"), "ActionLink", ForumActionType.Edit)%> <%#GetLink(Container.DataItem, ResHelper.GetString("general.delete"), "ActionLink", ForumActionType.Delete)%> <%#GetLink(Container.DataItem, ResHelper.GetString("general.attachments"), "ActionLink", ForumActionType.Attachment)%>
<%#GenerateIndentCode(Container.DataItem, "
")%>
<%-- PAGER --%> "> ... "> <%#Eval("Page")%> <%#Eval("Page")%> "> ...