[ljcom] r10832: LJSUP-9404: Anchors
Committer: esavintcev
LJSUP-9404: AnchorsU trunk/bin/upgrading/s2layers/opal/layout.s2
Modified: trunk/bin/upgrading/s2layers/opal/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/opal/layout.s2 2011-08-10 05:57:33 UTC (rev 10831)
+++ trunk/bin/upgrading/s2layers/opal/layout.s2 2011-08-10 06:25:56 UTC (rev 10832)
@@ -1056,7 +1056,7 @@
if ($p.showspam) {
print safe """<span> """ + get_plural_phrase($.spam_counter, "text_read_spam_comments") + """ </span>""";
} else {
- print safe """<a href=\"$.read_spam_url\"> """ + get_plural_phrase($.spam_counter, "text_read_all_spam_comments") + """ </a>""";
+ print safe """<a href=\"$.read_spam_url#$*text_comments_id\"> """ + get_plural_phrase($.spam_counter, "text_read_all_spam_comments") + """ </a>""";
}
}
}
@@ -1069,9 +1069,9 @@
print safe "$*text_max_comments";
} else {
if ($p.view == "entry") {
- $p->print_reply_link({"target" => "topcomment", "linktext" => "$*text_post_comment", "class" => "reply_link"});
+ $p->print_reply_link({"target" => "topcomment", "linktext" => "$*text_post_comment", "class" => "reply_link", "reply_url" => $.post_url+"#$*text_addcomment_id"});
} else {
- print safe "<a href=\"$.post_url\"> "+($p.view == "friends" ? $*text_post_comment_friends : $*text_post_comment)+" </a>";
+ print safe "<a href=\"$.post_url#$*text_addcomment_id\"> "+($p.view == "friends" ? $*text_post_comment_friends : $*text_post_comment)+" </a>";
}
}
}
@@ -1080,7 +1080,7 @@
function CommentInfo::print_readlink {
var Page p = get_page();
- print safe "<a href=\"$.read_url\"> "+
+ print safe "<a href=\"$.read_url#$*text_comments_id\"> "+
get_plural_phrase($.count, $p.view == "friends" ?
"text_read_comments_friends" : "text_read_comments")+
" </a>";
@@ -1110,7 +1110,7 @@
if ($.entry.comments.count > 0) {
"""
- <div class="messageholder"><div class="systemmessage"><div class="notablemessage "><b>Comments</b></div></div></div>
+ <div class="messageholder" id="$*text_comments_id"><div class="systemmessage"><div class="notablemessage "><b>Comments</b></div></div></div>
""";
}
@@ -1341,7 +1341,7 @@
} else {
var string url_of = $this->url_of($i);
- "<a href='$url_of'><b>[$i]</b></a>";
+ "<a href='$url_of#$*text_comments_id'><b>[$i]</b></a>";
}
}
"""</div></div></div>""";
@@ -1422,7 +1422,7 @@
}
print_ebox($.entry);
- """<div class="messageholder"><div class="systemmessage">
+ """<div class="messageholder" id="$*text_addcomment_id"><div class="systemmessage">
""";
$.form->print();
"""
