From 52c8d049af6c0963b63dd1e70f66128527a7cba5 Mon Sep 17 00:00:00 2001 From: Ugnich Anton Date: Wed, 7 Nov 2012 16:36:17 +0700 Subject: JS local time auto-expand comments --- src/java/User.properties | 5 + src/java/User_ru.properties | 5 + src/java/com/juick/http/www/PageTemplates.java | 40 ++-- src/java/com/juick/http/www/User.java | 14 +- src/java/com/juick/http/www/UserThread.java | 280 +++++++++++++------------ web/scripts3.js | 6 +- web/style3.css | 33 +-- 7 files changed, 205 insertions(+), 178 deletions(-) diff --git a/src/java/User.properties b/src/java/User.properties index f3b563db..3ed6bfa7 100644 --- a/src/java/User.properties +++ b/src/java/User.properties @@ -17,3 +17,8 @@ View\ as\ list=View as list View\ as\ tree=View as tree all=all Search=Search +(UToolbar)\ Subcribe=Subscribe +(UToolbar)\ Subcribed=Subscribed +(UToolbar)\ Block=Block user +(UToolbar)\ Unblock=Unblock user +(UToolbar)\ Private=Send a private message diff --git a/src/java/User_ru.properties b/src/java/User_ru.properties index fd38d0d5..fab91ceb 100644 --- a/src/java/User_ru.properties +++ b/src/java/User_ru.properties @@ -17,3 +17,8 @@ View\ as\ list=\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0441\u043f\u04 View\ as\ tree=\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0434\u0435\u0440\u0435\u0432\u043e\u043c all=\u0432\u0441\u0435 Search=\u041f\u043e\u0438\u0441\u043a +(UToolbar)\ Subcribe=\u041f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f +(UToolbar)\ Subcribed=\u041f\u043e\u0434\u043f\u0438\u0441\u0430\u043d +(UToolbar)\ Block=\u0417\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f +(UToolbar)\ Unblock=\u0420\u0430\u0437\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f +(UToolbar)\ Private=\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 diff --git a/src/java/com/juick/http/www/PageTemplates.java b/src/java/com/juick/http/www/PageTemplates.java index 41646e30..2ec42e42 100644 --- a/src/java/com/juick/http/www/PageTemplates.java +++ b/src/java/com/juick/http/www/PageTemplates.java @@ -48,17 +48,18 @@ public class PageTemplates { private static SimpleDateFormat sdfSQL = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.S"); private static SimpleDateFormat sdfSimple = new SimpleDateFormat("d MMM"); private static SimpleDateFormat sdfFull = new SimpleDateFormat("d MMM yyyy"); + private static SimpleDateFormat sdfJS = new SimpleDateFormat("yyyy,MM,dd,HH,mm,ss"); public static void pageHead(PrintWriter out, String title, String headers) { out.println(""); out.println(""); out.println("
"); out.println("