From 69453d196eb1dcc928c628c7ca32ba2f69ea22ea Mon Sep 17 00:00:00 2001 From: Ugnich Anton Date: Thu, 24 Apr 2014 01:28:53 +0700 Subject: Cross-user links --- src/java/com/juick/http/www/User.java | 17 ++++++++++++++++- web/style3.css | 3 +++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/src/java/com/juick/http/www/User.java b/src/java/com/juick/http/www/User.java index b584494e..abe96759 100644 --- a/src/java/com/juick/http/www/User.java +++ b/src/java/com/juick/http/www/User.java @@ -348,7 +348,22 @@ public class User { out.println("
  • Мои подписчики: " + UserQueries.getStatsMyReaders(sql, user.UID) + "
  • "); out.println("
  • Сообщений: " + UserQueries.getStatsMessages(sql, user.UID) + "
  • "); out.println("
  • Комментариев: " + UserQueries.getStatsReplies(sql, user.UID) + "
  • "); - out.println(" "); + out.println(" "); + + ArrayList iread = UserQueries.getUserReadLeastPopular(sql, user.UID, 8); + if (!iread.isEmpty()) { + out.println(""); + for (int i = 0; i < iread.size(); i++) { + if (i == 4) { + out.println(""); + } + com.juick.User u = iread.get(i); + out.println(""); + } + out.println("
    \""
    "); + } + + out.println(" "); out.println(""); } diff --git a/web/style3.css b/web/style3.css index 9c6eb890..8347cc18 100644 --- a/web/style3.css +++ b/web/style3.css @@ -145,6 +145,9 @@ blockquote { border-left: 1px dashed #CCC; margin: 10px 0 10px 10px; padding-lef #ctoolbar a { padding: 5px 10px;} #ctoolbar div { display: inline-block; width: 16px; height: 16px; background: url(//static.juick.com/toolbar-icons.png) no-repeat; vertical-align: middle; margin: 5px 0; } #ustats li { margin: 3px 0; font-size: 10pt; } +#column table.iread { width: 100%; } +#column table.iread td { text-align: center; } +#column table.iread img { width: 48px; height: 48px; } /********/ -- cgit v1.2.3