From 79a9182f4ad429fa43ad379028087d04d5abd126 Mon Sep 17 00:00:00 2001 From: Ugnich Anton Date: Fri, 25 Oct 2013 17:26:48 +0700 Subject: Always show text field for reply --- src/java/com/juick/http/www/PageTemplates.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/java') diff --git a/src/java/com/juick/http/www/PageTemplates.java b/src/java/com/juick/http/www/PageTemplates.java index 93eda04d..d63cb5f5 100644 --- a/src/java/com/juick/http/www/PageTemplates.java +++ b/src/java/com/juick/http/www/PageTemplates.java @@ -456,14 +456,15 @@ public class PageTemplates { msg.ReadOnly |= blUIDs.contains(msg.User.UID); - if (msg.Replies > 0) { - String repliesby = (msg.RepliesBy != null) ? msg.RepliesBy : "..."; - out.println("
" + formatReplies(msg.Replies, locale) + " " + rb.getString("(replies) by") + " " + repliesby + "
"); - } else if (visitor != null && (msg.ReadOnly == false || visitor.UID == msg.User.UID)) { + if (visitor != null && (msg.ReadOnly == false || visitor.UID == msg.User.UID)) { out.println("
"); out.println("
"); out.println("
"); } + if (msg.Replies > 0) { + String repliesby = (msg.RepliesBy != null) ? msg.RepliesBy : "..."; + out.println("
" + formatReplies(msg.Replies, locale) + " " + rb.getString("(replies) by") + " " + repliesby + "
"); + } out.println(" "); out.println(" "); } -- cgit v1.2.3