aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Ugnich Anton2013-10-25 17:26:48 +0700
committerGravatar Ugnich Anton2013-10-25 17:26:48 +0700
commit79a9182f4ad429fa43ad379028087d04d5abd126 (patch)
tree4c4431fade1c7d07d9bcc134f4d901fc2ce284e2 /src
parentd91993206614320bfea5b72b0a486b0adb9b965a (diff)
Always show text field for reply
Diffstat (limited to 'src')
-rw-r--r--src/java/com/juick/http/www/PageTemplates.java9
1 files changed, 5 insertions, 4 deletions
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(" <div class=\"msg-comments\"><a href=\"/" + msg.User.UName + "/" + msg.MID + "\">" + formatReplies(msg.Replies, locale) + "</a> " + rb.getString("(replies) by") + " " + repliesby + "</div>");
- } 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(" <form action=\"/post\" method=\"POST\" enctype=\"multipart/form-data\"><input type=\"hidden\" name=\"mid\" value=\"" + msg.MID + "\"/>");
out.println(" <div class=\"msg-comment\"><textarea name=\"body\" rows=\"1\" class=\"reply\" placeholder=\"" + rb.getString("Add a comment") + "\" onkeypress=\"postformListener(this.form,event)\"></textarea></div>");
out.println(" </form>");
}
+ if (msg.Replies > 0) {
+ String repliesby = (msg.RepliesBy != null) ? msg.RepliesBy : "...";
+ out.println(" <div class=\"msg-comments\"><a href=\"/" + msg.User.UName + "/" + msg.MID + "\">" + formatReplies(msg.Replies, locale) + "</a> " + rb.getString("(replies) by") + " " + repliesby + "</div>");
+ }
out.println(" </div>");
out.println(" </li>");
}