From 0875cdc5839f9c712a43e6f583eb27cdeff8d0ce Mon Sep 17 00:00:00 2001 From: inga-lovinde <52715130+inga-lovinde@users.noreply.github.com> Date: Fri, 2 Jul 2010 12:40:34 +0000 Subject: [PATCH] 'Send PM' link implemented on user info page --- Builder/IISMainHandler/build.txt | 2 +- Builder/IISUploadHandler/build.txt | 2 +- IISMainHandler/handlers/response/PMSendHandler.cs | 6 ++++++ templates/Full/PMSend.xslt | 12 +++++++++++- templates/Full/UserInfo.xslt | 3 +++ 5 files changed, 22 insertions(+), 3 deletions(-) diff --git a/Builder/IISMainHandler/build.txt b/Builder/IISMainHandler/build.txt index 6a5426c..941d0e5 100644 --- a/Builder/IISMainHandler/build.txt +++ b/Builder/IISMainHandler/build.txt @@ -1 +1 @@ -474 \ No newline at end of file +479 \ No newline at end of file diff --git a/Builder/IISUploadHandler/build.txt b/Builder/IISUploadHandler/build.txt index 55596b2..58e77f3 100644 --- a/Builder/IISUploadHandler/build.txt +++ b/Builder/IISUploadHandler/build.txt @@ -1 +1 @@ -210 \ No newline at end of file +215 \ No newline at end of file diff --git a/IISMainHandler/handlers/response/PMSendHandler.cs b/IISMainHandler/handlers/response/PMSendHandler.cs index 3f85893..6bca473 100644 --- a/IISMainHandler/handlers/response/PMSendHandler.cs +++ b/IISMainHandler/handlers/response/PMSendHandler.cs @@ -19,6 +19,12 @@ namespace FLocal.IISHandler.handlers.response { } override protected XElement[] getSpecificData(WebContext context) { + if(context.requestParts.Length > 1) { + Account account = Account.LoadById(int.Parse(context.requestParts[1])); + return new XElement[] { + new XElement("receiver", account.exportToXml(context)), + }; + } return new XElement[0]; } } diff --git a/templates/Full/PMSend.xslt b/templates/Full/PMSend.xslt index fea243c..b7833ce 100644 --- a/templates/Full/PMSend.xslt +++ b/templates/Full/PMSend.xslt @@ -24,7 +24,17 @@
Получатель: - + + + + + + + + + + +

Тема: diff --git a/templates/Full/UserInfo.xslt b/templates/Full/UserInfo.xslt index 01ee2a1..2d50c95 100644 --- a/templates/Full/UserInfo.xslt +++ b/templates/Full/UserInfo.xslt @@ -181,6 +181,9 @@ + + /PMSend// + Послать личное сообщение