From 396f964217c09841ea334a1e0dbaaac4a0888136 Mon Sep 17 00:00:00 2001 From: inga-lovinde <52715130+inga-lovinde@users.noreply.github.com> Date: Fri, 20 Apr 2012 22:50:56 +0400 Subject: [PATCH] C:/Program Files (x86)/Git/Replies/ URLs renamed to /Mentions/ --- FLocal.Common/FLocal.Common.csproj | 2 +- FLocal.Common/URL/UrlManager.cs | 3 ++- FLocal.Common/URL/users/user/{Replies.cs => Mentions.cs} | 6 +++--- FLocal.IISHandler/HandlersFactory.cs | 2 +- FLocal.IISHandler/handlers/response/UserRepliesHandler.cs | 2 +- Resources/FLocal/templates/Full/Boards.xslt | 2 +- Resources/FLocal/templates/Full/UserInfo.xslt | 4 ++-- Resources/FLocal/templates/Lite/UserInfo.xslt | 4 ++-- Resources/FLocal/templates/Modern/Boards.xslt | 2 +- Resources/FLocal/templates/Modern/elems/ForumHeader.xslt | 4 ++-- Resources/FLocal/templates/Modern/elems/UserHeader.xslt | 4 ++-- 11 files changed, 18 insertions(+), 17 deletions(-) rename FLocal.Common/URL/users/user/{Replies.cs => Mentions.cs} (51%) diff --git a/FLocal.Common/FLocal.Common.csproj b/FLocal.Common/FLocal.Common.csproj index bee8ce6..b47cde2 100644 --- a/FLocal.Common/FLocal.Common.csproj +++ b/FLocal.Common/FLocal.Common.csproj @@ -183,7 +183,7 @@ - + diff --git a/FLocal.Common/URL/UrlManager.cs b/FLocal.Common/URL/UrlManager.cs index b01aa7d..f5c3b8f 100644 --- a/FLocal.Common/URL/UrlManager.cs +++ b/FLocal.Common/URL/UrlManager.cs @@ -305,7 +305,8 @@ namespace FLocal.Common.URL { case "posts": return new users.user.Posts(requestParts[2], GetRemainder(requestParts, 4)); case "replies": - return new users.user.Replies(requestParts[2], GetRemainder(requestParts, 4)); + case "mentions": + return new users.user.Mentions(requestParts[2], GetRemainder(requestParts, 4)); case "threads": return new users.user.Threads(requestParts[2], GetRemainder(requestParts, 4)); default: diff --git a/FLocal.Common/URL/users/user/Replies.cs b/FLocal.Common/URL/users/user/Mentions.cs similarity index 51% rename from FLocal.Common/URL/users/user/Replies.cs rename to FLocal.Common/URL/users/user/Mentions.cs index f4cf083..b7f74c3 100644 --- a/FLocal.Common/URL/users/user/Replies.cs +++ b/FLocal.Common/URL/users/user/Mentions.cs @@ -4,14 +4,14 @@ using System.Linq; using System.Text; namespace FLocal.Common.URL.users.user { - public class Replies : Abstract { + public class Mentions : Abstract { - public Replies(string userId, string remainder) : base(userId, remainder) { + public Mentions(string userId, string remainder) : base(userId, remainder) { } protected override string _canonical { get { - return "/Users/User/" + this.user.id + "/Replies/"; + return "/Users/User/" + this.user.id + "/Mentions/"; } } } diff --git a/FLocal.IISHandler/HandlersFactory.cs b/FLocal.IISHandler/HandlersFactory.cs index e54b185..54096fe 100644 --- a/FLocal.IISHandler/HandlersFactory.cs +++ b/FLocal.IISHandler/HandlersFactory.cs @@ -51,7 +51,7 @@ namespace FLocal.IISHandler { { typeof(URL.users.user.Info), CreateHandler }, { typeof(URL.users.user.PollsParticipated), CreateHandler }, { typeof(URL.users.user.Posts), CreateHandler }, - { typeof(URL.users.user.Replies), CreateHandler }, + { typeof(URL.users.user.Mentions), CreateHandler }, { typeof(URL.users.user.Threads), CreateHandler }, }; diff --git a/FLocal.IISHandler/handlers/response/UserRepliesHandler.cs b/FLocal.IISHandler/handlers/response/UserRepliesHandler.cs index cb6f279..3a2f8a8 100644 --- a/FLocal.IISHandler/handlers/response/UserRepliesHandler.cs +++ b/FLocal.IISHandler/handlers/response/UserRepliesHandler.cs @@ -12,7 +12,7 @@ using Web.Core.DB.conditions; namespace FLocal.IISHandler.handlers.response { - class UserRepliesHandler : AbstractUserGetHandler { + class UserRepliesHandler : AbstractUserGetHandler { override protected string templateName { get { diff --git a/Resources/FLocal/templates/Full/Boards.xslt b/Resources/FLocal/templates/Full/Boards.xslt index 0e64b09..60aa6d0 100644 --- a/Resources/FLocal/templates/Full/Boards.xslt +++ b/Resources/FLocal/templates/Full/Boards.xslt @@ -58,7 +58,7 @@
- /Users/User//Replies/ + /Users/User//Mentions/ Последние ответы на мои сообщения diff --git a/Resources/FLocal/templates/Full/UserInfo.xslt b/Resources/FLocal/templates/Full/UserInfo.xslt index 37b61cd..9daadcb 100644 --- a/Resources/FLocal/templates/Full/UserInfo.xslt +++ b/Resources/FLocal/templates/Full/UserInfo.xslt @@ -192,8 +192,8 @@ | - /Users/User//Replies/ - Ответы + /Users/User//Mentions/ + Отклики | diff --git a/Resources/FLocal/templates/Lite/UserInfo.xslt b/Resources/FLocal/templates/Lite/UserInfo.xslt index bd6d5c4..0d3d5ea 100644 --- a/Resources/FLocal/templates/Lite/UserInfo.xslt +++ b/Resources/FLocal/templates/Lite/UserInfo.xslt @@ -209,8 +209,8 @@ | - /Users/User//Replies/ - Ответы + /Users/User//Mentions/ + Отклики | diff --git a/Resources/FLocal/templates/Modern/Boards.xslt b/Resources/FLocal/templates/Modern/Boards.xslt index 1c731fc..bc4f5b0 100644 --- a/Resources/FLocal/templates/Modern/Boards.xslt +++ b/Resources/FLocal/templates/Modern/Boards.xslt @@ -53,7 +53,7 @@ . - /Users/User//Replies/ + /Users/User//Mentions/ diff --git a/Resources/FLocal/templates/Modern/elems/ForumHeader.xslt b/Resources/FLocal/templates/Modern/elems/ForumHeader.xslt index a25c78f..2776fe9 100644 --- a/Resources/FLocal/templates/Modern/elems/ForumHeader.xslt +++ b/Resources/FLocal/templates/Modern/elems/ForumHeader.xslt @@ -17,8 +17,8 @@ Сообщения - /Users/User//Replies/ - Ответы + /Users/User//Mentions/ + Отклики true diff --git a/Resources/FLocal/templates/Modern/elems/UserHeader.xslt b/Resources/FLocal/templates/Modern/elems/UserHeader.xslt index c1f8dbd..0ae3d20 100644 --- a/Resources/FLocal/templates/Modern/elems/UserHeader.xslt +++ b/Resources/FLocal/templates/Modern/elems/UserHeader.xslt @@ -17,8 +17,8 @@ Сообщения - Replies/ - Ответы + Mentions/ + Отклики PollsParticipated/