[livejournal] r19679: LJSUP-9404: Anchors
Committer: esavintcev
LJSUP-9404: AnchorsU trunk/bin/upgrading/s2layers/punquin/layout.s2
Modified: trunk/bin/upgrading/s2layers/punquin/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/punquin/layout.s2 2011-08-10 06:14:53 UTC (rev 19678)
+++ trunk/bin/upgrading/s2layers/punquin/layout.s2 2011-08-10 06:34:37 UTC (rev 19679)
@@ -665,9 +665,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>";
}
}
}
@@ -689,7 +689,7 @@
if ($p.showspam) {
print safe get_plural_phrase($.spam_counter, "text_read_spam_comments");
} 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>""";
}
}
}
@@ -835,7 +835,7 @@
if ($.entry.comments.enabled and $.comment_pages.total_subitems > 0)
{
$this->print_multiform_start();
- print "<h2 class='date'>Comments:</h2>";
+ print "<h2 class='date' id='$*text_comments_id'>Comments:</h2>";
"<hr class='separator' />";
if ($.comment_pages.total_subitems > 0) {
$.comment_pages->print();
@@ -1033,7 +1033,7 @@
}
print_ebox($.entry);
"<hr class='separator' />";
- "<h2 class='date'>Reply</h2>";
+ "<h2 class='date' id='$*text_addcomment_id'>$*text_post_comment</h2>";
"<hr class='separator' />";
$.form->print();
}
