From 5a0d5f5d07e4c55079c86ce3c1cce60e7b9ef080 Mon Sep 17 00:00:00 2001 From: inga-lovinde <52715130+inga-lovinde@users.noreply.github.com> Date: Mon, 30 Aug 2010 17:16:44 +0000 Subject: [PATCH] Implemented specific post data --- Builder/IISMainHandler/build.txt | 2 +- Common/dataobjects/Post.cs | 12 ++++++++--- templates/Full/elems/PostInfo.xslt | 33 +++++++++++++++--------------- 3 files changed, 27 insertions(+), 20 deletions(-) diff --git a/Builder/IISMainHandler/build.txt b/Builder/IISMainHandler/build.txt index 90afd51..dcdf7f5 100644 --- a/Builder/IISMainHandler/build.txt +++ b/Builder/IISMainHandler/build.txt @@ -1 +1 @@ -940 \ No newline at end of file +942 \ No newline at end of file diff --git a/Common/dataobjects/Post.cs b/Common/dataobjects/Post.cs index 454916f..723e0ca 100644 --- a/Common/dataobjects/Post.cs +++ b/Common/dataobjects/Post.cs @@ -187,8 +187,6 @@ namespace FLocal.Common.dataobjects { new XElement("id", this.id), new XElement("poster", this.poster.exportToXmlForViewing(context)), new XElement("postDate", this.postDate.ToXml()), - new XElement("lastChangeDate", this.lastChangeDate.ToXml()), - new XElement("revision", this.revision.ToString()), new XElement("layerId", this.layerId), new XElement("layerName", this.layer.name), new XElement("title", this.title), @@ -196,7 +194,15 @@ namespace FLocal.Common.dataobjects { //this.XMLBody(context), new XElement("bodyShort", this.bodyShort), new XElement("threadId", this.threadId), - new XElement("isOwner", ((context.account != null) && (this.poster.id == context.account.user.id)).ToPlainString()) + new XElement("isOwner", ((context.account != null) && (this.poster.id == context.account.user.id)).ToPlainString()), + new XElement( + "specific", + new XElement( + "changeInfo", + new XElement("lastChangeDate", this.lastChangeDate.ToXml()), + new XElement("revision", this.revision.ToString()) + ) + ) ); if(includeParentPost) { if(this.parentPostId.HasValue) { diff --git a/templates/Full/elems/PostInfo.xslt b/templates/Full/elems/PostInfo.xslt index ebe7b37..706e269 100644 --- a/templates/Full/elems/PostInfo.xslt +++ b/templates/Full/elems/PostInfo.xslt @@ -123,22 +123,7 @@ - - - - - - Это сообщение было отредактировано пользователем - - раз, последний раз - -
-
-
- - -
-
+ @@ -156,5 +141,21 @@ + + + + + + Это сообщение было отредактировано пользователем + + раз, последний раз + +
+
+
+ + +
+
\ No newline at end of file