示例#1
0
        //-------------------------

        public static String GetTopic(List <ForumBoard> boards, ForumTopic topic, MvcContext ctx)
        {
            StringBuilder sb  = getBuilder(boards, ctx);
            String        url = LinkUtil.appendListPageToTopic(alink.ToAppData(topic), ctx);

            sb.AppendFormat("<div class=\"pull-left\"><a href=\"{0}\">" + alang(ctx, "pTopic") + ": {1}</a></div>", url, strUtil.CutString(topic.Title, 35));

            appendEnd(sb);
            return(sb.ToString());
        }
        //-------------------------

        public static String GetTopic(List <ForumBoard> boards, ForumTopic topic, MvcContext ctx)
        {
            StringBuilder sb  = getBuilder(boards, ctx);
            String        url = LinkUtil.appendListPageToTopic(alink.ToAppData(topic), ctx);

            sb.AppendFormat("<a href=\"{0}\" style=\"font-weight:normal;margin-left:5px;\">" + alang(ctx, "pTopic") + ": {1}</a>", url, topic.Title);

            sb.Append("</div></div>");
            return(sb.ToString());
        }