diff options
author | Ugnich Anton | 2014-02-11 12:56:21 +0700 |
---|---|---|
committer | Ugnich Anton | 2014-02-11 12:56:21 +0700 |
commit | 86872ed9bf88682538f98c4b47726ae297c5d7cb (patch) | |
tree | 009ea223c9794462690ea67e1dbedc644c101dca /src | |
parent | c11ceac5261662c3c20bfd497c4c89a1c9840e0a (diff) |
User page titles
Diffstat (limited to 'src')
-rw-r--r-- | src/java/com/juick/http/www/User.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/java/com/juick/http/www/User.java b/src/java/com/juick/http/www/User.java index a7e4a62a..71b9ae16 100644 --- a/src/java/com/juick/http/www/User.java +++ b/src/java/com/juick/http/www/User.java @@ -43,7 +43,6 @@ public class User { protected void doGetBlog(Connection sql, Connection sqlSearch, HttpServletRequest request, HttpServletResponse response, com.juick.User user) throws ServletException, IOException { com.juick.User visitor = Utils.getVisitorUser(sql, request, response); - String title = "@" + user.UName + " - "; ArrayList<Integer> mids; String paramShow = request.getParameter("show"); @@ -77,22 +76,23 @@ public class User { } } + String title; if (paramShow == null) { if (paramTag != null) { - title += "*" + Utils.encodeHTML(paramTag.Name); + title = "Блог " + user.UName + ": *" + Utils.encodeHTML(paramTag.Name); mids = MessagesQueries.getUserTag(sql, user.UID, paramTag.TID, privacy, paramBefore); } else if (paramSearch != null) { - title += "Поиск: " + Utils.encodeHTML(paramSearch); + title = "Блог " + user.UName + ": " + Utils.encodeHTML(paramSearch); mids = MessagesQueries.getUserSearch(sql, sqlSearch, user.UID, Utils.encodeSphinx(paramSearch), privacy, paramBefore); } else { - title += "Блог"; + title = "Блог " + user.UName; mids = MessagesQueries.getUserBlog(sql, user.UID, privacy, paramBefore); } } else if (paramShow.equals("recomm")) { - title += "Рекомендации"; + title = "Рекомендации " + user.UName; mids = MessagesQueries.getUserRecommendations(sql, user.UID, paramBefore); } else if (paramShow.equals("photos")) { - title += "Фотографии"; + title = "Фотографии " + user.UName; mids = MessagesQueries.getUserPhotos(sql, user.UID, privacy, paramBefore); } else { response.sendError(404); @@ -144,7 +144,7 @@ public class User { response.setContentType("text/html; charset=UTF-8"); PrintWriter out = response.getWriter(); try { - PageTemplates.pageHead(out, "@" + user.UName + ": Теги", null); + PageTemplates.pageHead(out, "Теги " + user.UName, null); PageTemplates.pageNavigation(out, visitor, null); pageUserColumn(out, sql, user, visitor); @@ -167,7 +167,7 @@ public class User { response.setContentType("text/html; charset=UTF-8"); PrintWriter out = response.getWriter(); try { - PageTemplates.pageHead(out, "@" + user.UName + ": Я читаю", null); + PageTemplates.pageHead(out, "Подписки " + user.UName, null); PageTemplates.pageNavigation(out, visitor, null); pageUserColumn(out, sql, user, visitor); @@ -213,7 +213,7 @@ public class User { response.setContentType("text/html; charset=UTF-8"); PrintWriter out = response.getWriter(); try { - PageTemplates.pageHead(out, "@" + user.UName + ": Мои подписчики", null); + PageTemplates.pageHead(out, "Читатели " + user.UName, null); PageTemplates.pageNavigation(out, visitor, null); pageUserColumn(out, sql, user, visitor); |