From d3454e70a5855164d17c563fe15e8674b5a5ae2e Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 22 Jul 2016 16:51:43 +0300 Subject: * drop jQuery dependency --- .../src/main/java/com/juick/www/Discover.java | 2 +- juick-www/src/main/java/com/juick/www/Errors.java | 2 +- juick-www/src/main/java/com/juick/www/Help.java | 2 +- juick-www/src/main/java/com/juick/www/Home.java | 13 +++++--- .../src/main/java/com/juick/www/NewMessage.java | 17 +++++----- juick-www/src/main/java/com/juick/www/PM.java | 4 +-- .../src/main/java/com/juick/www/PageTemplates.java | 37 +++++++++++----------- .../src/main/java/com/juick/www/Settings.java | 2 +- juick-www/src/main/java/com/juick/www/SignUp.java | 4 +-- juick-www/src/main/java/com/juick/www/User.java | 8 ++--- .../src/main/java/com/juick/www/UserThread.java | 30 +++++++----------- 11 files changed, 60 insertions(+), 61 deletions(-) (limited to 'juick-www/src/main/java/com/juick/www') diff --git a/juick-www/src/main/java/com/juick/www/Discover.java b/juick-www/src/main/java/com/juick/www/Discover.java index e94d6e99..c1bcacc7 100644 --- a/juick-www/src/main/java/com/juick/www/Discover.java +++ b/juick-www/src/main/java/com/juick/www/Discover.java @@ -84,7 +84,7 @@ public class Discover { } else if (paramBefore > 0 || mids.size() < 5) { head = ""; } - PageTemplates.pageHead(out, title, head); + PageTemplates.pageHead(out, visitor, title, head); PageTemplates.pageNavigation(out, visitor, null); PageTemplates.pageHomeColumn(out, sql, visitor); diff --git a/juick-www/src/main/java/com/juick/www/Errors.java b/juick-www/src/main/java/com/juick/www/Errors.java index 45fa3d51..4ab10229 100644 --- a/juick-www/src/main/java/com/juick/www/Errors.java +++ b/juick-www/src/main/java/com/juick/www/Errors.java @@ -26,7 +26,7 @@ public class Errors { response.setStatus(404); response.setContentType("text/html; charset=UTF-8"); try (PrintWriter out = response.getWriter()) { - PageTemplates.pageHead(out, "404 Страница не найдена", null); + PageTemplates.pageHead(out, visitor, "404 Страница не найдена", null); PageTemplates.pageNavigation(out, visitor, null); PageTemplates.pageHomeColumn(out, sql, visitor); diff --git a/juick-www/src/main/java/com/juick/www/Help.java b/juick-www/src/main/java/com/juick/www/Help.java index e0ecab2b..a8bfaf3f 100644 --- a/juick-www/src/main/java/com/juick/www/Help.java +++ b/juick-www/src/main/java/com/juick/www/Help.java @@ -62,7 +62,7 @@ public class Help { response.setContentType("text/html; charset=UTF-8"); try (PrintWriter out = response.getWriter()) { - PageTemplates.pageHead(out, "Помощь", null); + PageTemplates.pageHead(out, visitor, "Помощь", null); PageTemplates.pageNavigation(out, visitor, null); out.println("