aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/http/www
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2015-10-24 21:41:43 +0300
committerGravatar Vitaly Takmazov2015-10-24 21:41:43 +0300
commitbd489f0adacb1fcd04c4ae62f5b7f5cae0d64722 (patch)
tree1decf4c7d319c18dbfb8096bf98872b4d644c7af /src/main/java/com/juick/http/www
parenta8586b615707fe0bae22dd535771c87e7befb9cc (diff)
photos
Diffstat (limited to 'src/main/java/com/juick/http/www')
-rw-r--r--src/main/java/com/juick/http/www/Home.java3
-rw-r--r--src/main/java/com/juick/http/www/PageTemplates.java2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/com/juick/http/www/Home.java b/src/main/java/com/juick/http/www/Home.java
index 52012182..27a63574 100644
--- a/src/main/java/com/juick/http/www/Home.java
+++ b/src/main/java/com/juick/http/www/Home.java
@@ -78,6 +78,9 @@ public class Home {
} else if (paramShow.equals("recommended") && visitor != null) {
title = "Рекомендации";
mids = MessagesQueries.getRecommended(sql, visitor.UID, paramBefore);
+ } else if (paramShow.equals("photos") && visitor != null) {
+ title = "Фотографии";
+ mids = MessagesQueries.getPhotos(sql, visitor.UID, paramBefore);
} else if (paramShow.equals("all")) {
title = "Все сообщения";
if (visitor != null) {
diff --git a/src/main/java/com/juick/http/www/PageTemplates.java b/src/main/java/com/juick/http/www/PageTemplates.java
index 7d6bd1c8..6873bbd6 100644
--- a/src/main/java/com/juick/http/www/PageTemplates.java
+++ b/src/main/java/com/juick/http/www/PageTemplates.java
@@ -74,7 +74,7 @@ public class PageTemplates {
out.print(" <nav id=\"global\"><ul>");
out.print("<li><a href=\"/\">Популярные</a></li>");
out.print("<li><a href=\"/?show=all\" rel=\"nofollow\">Все сообщения</a></li>");
- out.print("<li><a href=\"/reader\" rel=\"nofollow\">Ссылки</a></li>");
+ out.print("<li><a href=\"/?show=photos\" rel=\"nofollow\">Фотографии</a></li>");
out.println("</ul></nav>");
out.print(" <div id=\"search\"><form action=\"/\"><input type=\"text\" name=\"search\" class=\"text\" placeholder=\"Поиск\"");
if (search != null) {