protected string RenderLastUpdates() { if (Topic.RecentPostID == 0) { return(""); } var recentPostURL = _settings.LinkProvider.RecentPost(Topic.RecentPostID, Topic.ID, Topic.PostCount); var sb = new StringBuilder(); var fullText = HtmlUtil.GetText(Topic.RecentPostText); var text = HtmlUtil.GetText(Topic.RecentPostText, 20); sb.Append("<div style='margin-bottom:5px;'><a class = 'link' title=\"" + HttpUtility.HtmlEncode(fullText) + "\" href=\"" + recentPostURL + "\">" + HttpUtility.HtmlEncode(text) + "</a></div>"); sb.Append("<div class = 'link' style='overflow: hidden; max-width: 180px;'>" + ASC.Core.Users.StudioUserInfoExtension.RenderCustomProfileLink(CoreContext.UserManager.GetUsers(Topic.RecentPostAuthorID), "describe-text", "link gray") + "</div>"); sb.Append("<div style='margin-top:5px;'>"); sb.Append(DateTimeService.DateTime2StringTopicStyle(Topic.RecentPostCreateDate)); sb.Append("<a href=\"" + recentPostURL + "\"><img hspace=\"5\" align=\"absmiddle\" alt=\"»\" title=\"»\" border=\"0\" src=\"" + WebImageSupplier.GetAbsoluteWebPath("goto.png", _settings.ImageItemID) + "\"/></a>"); sb.Append("</div>"); return(sb.ToString()); }