Committer: esavintcev
LJSUP-9404: AnchorsU trunk/bin/upgrading/s2layers/nebula/layout.s2
Modified: trunk/bin/upgrading/s2layers/nebula/layout.s2 =================================================================== --- trunk/bin/upgrading/s2layers/nebula/layout.s2 2011-08-10 05:51:50 UTC (rev 10830) +++ trunk/bin/upgrading/s2layers/nebula/layout.s2 2011-08-10 05:57:33 UTC (rev 10831) @@ -1520,9 +1520,9 @@ print safe "$*text_max_comments"; } else { if ($p.view == "entry") { - $p->print_reply_link({"target" => "topcomment", "linktext" => $*text_post_comment}); + $p->print_reply_link({"target" => "topcomment", "linktext" => $*text_post_comment, "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>"; } } } @@ -1535,7 +1535,7 @@ " <div class=\"commentsInfo\">\n "; if ( not $.enabled ) { - print safe "<a href='$.read_url'>$*text_permalink</a>"; + print safe "<a href='$.read_url#$*text_comments_id'>$*text_permalink</a>"; "\n </div>"; return; } @@ -1545,7 +1545,7 @@ if ($p.showspam) { print safe """$link_separator""" + get_plural_phrase($.spam_counter, "text_read_spam_comments"); } else { - print safe """$link_separator<a href=\"$.read_spam_url\">""" + get_plural_phrase($.spam_counter, "text_read_all_spam_comments") + """</a>"""; + print safe """$link_separator<a href=\"$.read_spam_url#$*text_comments_id\">""" + get_plural_phrase($.spam_counter, "text_read_all_spam_comments") + """</a>"""; } } } else { @@ -1569,7 +1569,7 @@ print_ebox($.entry); if ( $.entry.comments.enabled and $.comment_pages.total_subitems > 0) { - print "<div class=\"entry\"><h3>Comments:</h3></div><hr /><div id=\"commentsWrapper\">"; + print "<div class=\"entry\" id=\"$*text_comments_id\"><h3>Comments:</h3></div><hr /><div id=\"commentsWrapper\">"; if ( $this.multiform_on ) { $this->print_multiform_start(); } @@ -1771,7 +1771,7 @@ print_ebox($.entry); """<div class="commentBarOne"><div class="commentInfo">"""; var string what = $.replyto.permalink_url == $.entry.permalink_url ? "entry" : "comment" ; - "<h3>Reply to this $what:</h3></div>"; + "<h3 id='$*text_addcomment_id'>Reply to this $what:</h3></div>"; $.form->print(); "</div>"; }