From 1e452f3ab889a60ec981cce9c75c81a4e43d25b1 Mon Sep 17 00:00:00 2001 From: Ugnich Anton Date: Mon, 3 Feb 2014 02:14:41 +0700 Subject: Popular tags fix --- src/java/com/juick/http/www/Home.java | 2 +- src/java/com/juick/http/www/PageTemplates.java | 6 +++--- src/java/com/juick/http/www/User.java | 2 +- web/style3.css | 5 +++-- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/java/com/juick/http/www/Home.java b/src/java/com/juick/http/www/Home.java index 204c35b3..eb40be61 100644 --- a/src/java/com/juick/http/www/Home.java +++ b/src/java/com/juick/http/www/Home.java @@ -87,7 +87,7 @@ public class Home { PrintWriter out = response.getWriter(); try { PageTemplates.pageHead(out, title, null); - PageTemplates.pageNavigation(out, visitor, null); + PageTemplates.pageNavigation(out, visitor, paramSearch); PageTemplates.pageHomeColumn(out, sql, visitor); diff --git a/src/java/com/juick/http/www/PageTemplates.java b/src/java/com/juick/http/www/PageTemplates.java index c8d47245..23f2b007 100644 --- a/src/java/com/juick/http/www/PageTemplates.java +++ b/src/java/com/juick/http/www/PageTemplates.java @@ -53,7 +53,7 @@ public class PageTemplates { out.println(""); out.print(""); out.print(""); - out.print(""); + out.print(""); out.print(""); out.print(""); if (headers != null) { @@ -138,11 +138,11 @@ public class PageTemplates { public static void pageHomeColumn(PrintWriter out, Connection sql, com.juick.User visitor) { if (tagsHTML == null) { - tagsHTML = PageTemplates.getPopularTags(sql, 60); + tagsHTML = PageTemplates.getPopularTags(sql, 80); } out.println(""); } diff --git a/src/java/com/juick/http/www/User.java b/src/java/com/juick/http/www/User.java index 6fb3dfc0..1c6d1d3e 100644 --- a/src/java/com/juick/http/www/User.java +++ b/src/java/com/juick/http/www/User.java @@ -287,7 +287,7 @@ public class User { out.println("
"); out.println("

"); out.println("
"); - out.println("

" + pageUserTags(sql, user, visitor, 15) + "...

"); + out.println("

" + pageUserTags(sql, user, visitor, 20) + "...

"); out.println("
"); out.println("