");
out.println(" ");
out.println("
" + templates.formatJSLocalTime(msg.getDate()) + "
");
out.println("
");
out.println(" ");
out.println("
" + txt + "
");
if (msg.getAttachmentType() != null) {
out.println("
");
}
boolean visitorInBL = false;
if (visitor.getUid() > 0) {
if (visitor.getUid() == msg.getUser().getUid()) {
msg.VisitorCanComment = true;
} else {
visitorInBL = userService.isInBL(msg.getUser().getUid(), visitor.getUid());
if (visitorInBL) {
msg.VisitorCanComment = false;
}
}
}
if (msg.VisitorCanComment && !messagesService.isReadonly()) {
out.println("
");
}
List
recomm = messagesService.getMessageRecommendations(msg.getMid());
if (!recomm.isEmpty()) {
out.print(" Рекомендовали (" + recomm.size() + "): ");
for (int i = 0; i < recomm.size(); i++) {
if (i > 0) {
out.print(", ");
}
out.print("
@" + recomm.get(i) + "");
}
out.println("
");
}
out.println(" ");
out.println("