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 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
(limited to 'src/java/com')
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("");
}
--
cgit v1.2.3