From 48f7f70bf7e6de02dd8068445f1475a27e73d12c Mon Sep 17 00:00:00 2001 From: inga-lovinde <52715130+inga-lovinde@users.noreply.github.com> Date: Wed, 1 Sep 2010 15:14:32 +0000 Subject: [PATCH] Slight refactoring in ThreadInfo --- Builder/IISMainHandler/build.txt | 2 +- Common/dataobjects/Thread.cs | 6 +----- templates/Full/elems/ThreadInfo.xslt | 8 ++++---- templates/Lite/elems/ThreadInfo.xslt | 6 +++--- 4 files changed, 9 insertions(+), 13 deletions(-) diff --git a/Builder/IISMainHandler/build.txt b/Builder/IISMainHandler/build.txt index 8ced8f7..b7e8805 100644 --- a/Builder/IISMainHandler/build.txt +++ b/Builder/IISMainHandler/build.txt @@ -1 +1 @@ -989 \ No newline at end of file +991 \ No newline at end of file diff --git a/Common/dataobjects/Thread.cs b/Common/dataobjects/Thread.cs index 52008c9..bab5fad 100644 --- a/Common/dataobjects/Thread.cs +++ b/Common/dataobjects/Thread.cs @@ -189,8 +189,7 @@ namespace FLocal.Common.dataobjects { XElement result = new XElement("thread", new XElement("id", this.id), - new XElement("firstPostId", this.firstPostId), - new XElement("topicstarter", this.topicstarter.exportToXmlForViewing(context)), + new XElement("firstPost", this.firstPost.exportToXml(context)), new XElement("title", this.title), new XElement("lastPostId", this.lastPostId), new XElement("lastPostDate", this.lastPostDate.ToXml()), @@ -198,9 +197,6 @@ namespace FLocal.Common.dataobjects { new XElement("isLocked", this.isLocked), new XElement("totalPosts", this.totalPosts), new XElement("totalViews", this.totalViews), - new XElement("bodyShort", this.firstPost.bodyShort), - new XElement("layerId", this.firstPost.layerId), - new XElement("layerName", this.firstPost.layer.name), context.formatTotalPosts(this.totalPosts) ); if(context.account != null) { diff --git a/templates/Full/elems/ThreadInfo.xslt b/templates/Full/elems/ThreadInfo.xslt index ecf381f..3d2d48a 100644 --- a/templates/Full/elems/ThreadInfo.xslt +++ b/templates/Full/elems/ThreadInfo.xslt @@ -12,7 +12,7 @@ - + @@ -24,10 +24,10 @@ * - /static/images/message--notread.gif + /static/images/message--notread.gif - /static/images/message--read.gif + /static/images/message--read.gif @@ -53,7 +53,7 @@ - + diff --git a/templates/Lite/elems/ThreadInfo.xslt b/templates/Lite/elems/ThreadInfo.xslt index 839eef6..f7e3d34 100644 --- a/templates/Lite/elems/ThreadInfo.xslt +++ b/templates/Lite/elems/ThreadInfo.xslt @@ -18,8 +18,8 @@ {l} - {o} - {g} + {o} + {g} (* @@ -44,7 +44,7 @@ - +