aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-09-13 19:03:40 +0300
committerGravatar Vitaly Takmazov2016-09-13 19:03:40 +0300
commit4db5b8262430c8333c5ac11c0bf9e3fe90f624a1 (patch)
treee36eae7a5f2629e603a592d945bec9878a59118c /juick-www/src
parenteb18da1b50e36efa882943280d78c3eaab19de16 (diff)
fix reply template in tree mode
Diffstat (limited to 'juick-www/src')
-rw-r--r--juick-www/src/main/java/com/juick/www/UserThread.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/juick-www/src/main/java/com/juick/www/UserThread.java b/juick-www/src/main/java/com/juick/www/UserThread.java
index 8325cf53..beb08726 100644
--- a/juick-www/src/main/java/com/juick/www/UserThread.java
+++ b/juick-www/src/main/java/com/juick/www/UserThread.java
@@ -294,11 +294,15 @@ public class UserThread {
if (msg.AttachmentType != null) {
out.println(" <div class=\"msg-media\"><a href=\"//i.juick.com/p/" + msg.getMID() + "-" + msg.getRID() + "." + msg.AttachmentType + "\"><img src=\"//i.juick.com/photos-512/" + msg.getMID() + "-" + msg.getRID() + "." + msg.AttachmentType + "\" alt=\"\"/></a></div>");
}
+ out.print(" <div class=\"msg-links\">/" + msg.getRID());
+ if (msg.ReplyTo > 0) {
+ out.print(" в ответ на <a href=\"#" + msg.ReplyTo + "\">/" + msg.ReplyTo + "</a>");
+ }
if (msg.VisitorCanComment) {
- out.println(" <div class=\"msg-links\"><a href=\"/post?body=%23" + msg.getMID() + "/" + msg.getRID() + "%20\" class=\"a-thread-comment\">Ответить</a></div>");
+ out.println(" &#183; <a href=\"/post?body=%23" + msg.getMID() + "/" + msg.getRID() + "%20\" class=\"a-thread-comment\">Ответить</a></div>");
out.println(" <div class=\"msg-comment\" style=\"display: none\"></div>");
} else if (visitor == null) {
- out.println(" <div class=\"msg-links\"><a href=\"#\" class=\"a-login\">Ответить</a></div>");
+ out.println(" &#183; <a href=\"#\" class=\"a-login\">Ответить</a></div>");
}
int childs = msg.getChildsCount();