aboutsummaryrefslogtreecommitdiff
path: root/src/java/com/juick/http/www/Home.java
diff options
context:
space:
mode:
authorGravatar Ugnich Anton2014-02-15 13:13:04 +0700
committerGravatar Ugnich Anton2014-02-15 13:13:04 +0700
commit48b7aa72126b1a75e470077de48408d24fb1b546 (patch)
tree2149e2b47144a54280b965cc9a0b4b488c26d694 /src/java/com/juick/http/www/Home.java
parentc25951ec334d94a9471ad0f2575b7c8ee4e7e21a (diff)
New message layout (article); Google Analytics; small bugfixes
Diffstat (limited to 'src/java/com/juick/http/www/Home.java')
-rw-r--r--src/java/com/juick/http/www/Home.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/java/com/juick/http/www/Home.java b/src/java/com/juick/http/www/Home.java
index 1240e62e..1319a135 100644
--- a/src/java/com/juick/http/www/Home.java
+++ b/src/java/com/juick/http/www/Home.java
@@ -57,10 +57,10 @@ public class Home {
title = "Поиск: " + Utils.encodeHTML(paramSearch);
mids = MessagesQueries.getSearch(sql, sqlSearch, Utils.encodeSphinx(paramSearch), paramBefore);
} else if (paramShow == null || paramShow.equals("top")) {
- if(visitor!=null) {
- title = "Популярные";
+ if (visitor != null) {
+ title = "Популярные";
} else {
- title="Микроблоги Juick: популярные записи";
+ title = "Микроблоги Juick: популярные записи";
}
mids = MessagesQueries.getPopular(sql, paramBefore);
} else if (paramShow.equals("my") && visitor != null) {
@@ -114,9 +114,7 @@ public class Home {
}
}
- out.println("<ul>");
PageTemplates.printMessages(out, sql, null, mids, visitor, visitor == null ? 2 : 3, ad_mid);
- out.println("</ul>");
}
if (mids.size() >= 20) {