Савинцев Егор 🚶 (savintsev_egor) wrote in changelog,
Савинцев Егор 🚶
savintsev_egor
changelog

[livejournal] r19663: LJSUP-9404: Anchors

Committer: esavintcev
LJSUP-9404: Anchors
U   trunk/bin/upgrading/s2layers/generator/layout.s2
Modified: trunk/bin/upgrading/s2layers/generator/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/generator/layout.s2	2011-08-09 08:33:24 UTC (rev 19662)
+++ trunk/bin/upgrading/s2layers/generator/layout.s2	2011-08-09 08:51:49 UTC (rev 19663)
@@ -913,7 +913,7 @@
             $comments_showspam = """ | <span>""" + get_plural_phrase($e.comments.spam_counter, "text_read_spam_comments") + """</span> """;
 
         } else {
-            $comments_showspam = """ | <a href=\"$e.comments.read_spam_url\">""" + get_plural_phrase($e.comments.spam_counter, "text_read_all_spam_comments") + """</a></span> """;
+            $comments_showspam = """ | <a href=\"$e.comments.read_spam_url#$*text_comments_id\">""" + get_plural_phrase($e.comments.spam_counter, "text_read_all_spam_comments") + """</a></span> """;
         }
     }
 """</td></tr>
@@ -926,7 +926,7 @@
     } elseif ($e.comments.enabled) {
         "<td align='right' class='comments'>";
         if (not $e.comments.locked) {
-            $p->print_reply_link({"linktext" => $*text_comment_reply, "target" => "topcomment"});
+            $p->print_reply_link({"linktext" => $*text_comment_reply, "target" => "topcomment", "reply_url" => $e.comments.post_url+"#$*text_addcomment_id"});
         }
     } else {
         "<td>";
@@ -1283,7 +1283,7 @@
 <tr align='left'>
 <td class="caption" colspan='2'>Comments:</td></tr>""";
 
-        """<tr align='left'><td colspan="2" bgcolor="$*entry_back"><a name='comments'></a>""";
+        """<tr align='left'><td colspan="2" bgcolor="$*entry_back"><a name='$*text_comments_id'></a>""";
 
         $.comment_pages->print();
 
@@ -1511,9 +1511,9 @@
     """<table width="$*box_width" cellpadding="2" cellspacing="0" border="0" summary="" class="entrybox">
 <tr align='left'>
 <td bgcolor="$*stronger_back" align="center">
-<table width="100%" cellpadding="5" cellspacing="0" border="0" summary="">
+<table width="100%" cellpadding="5" cellspacing="0" border="0" summary="" id="$*text_addcomment_id">
 <tr align='left'>
-<td class="caption" colspan='2'>Reply:</td></tr>
+<td class="caption" colspan='2'>$*text_post_comment:</td></tr>
 <tr align='left'>
 <td colspan="2" bgcolor="$*entry_back">""";
 

Tags: livejournal, s2, savintsev_egor
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments