From bd489f0adacb1fcd04c4ae62f5b7f5cae0d64722 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sat, 24 Oct 2015 21:41:43 +0300 Subject: photos --- src/main/java/com/juick/http/www/Home.java | 3 +++ src/main/java/com/juick/http/www/PageTemplates.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'src/main/java') 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(" "); out.print("