aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {