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

[ljcom] r10836: LJSUP-9404: Anchors

Committer: esavintcev
LJSUP-9404: Anchors
U   trunk/bin/upgrading/s2layers/unearthed/layout.s2
Modified: trunk/bin/upgrading/s2layers/unearthed/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/unearthed/layout.s2	2011-08-10 08:27:21 UTC (rev 10835)
+++ trunk/bin/upgrading/s2layers/unearthed/layout.s2	2011-08-10 08:33:28 UTC (rev 10836)
@@ -979,7 +979,7 @@
     $sidebar = $sidebar + """<div class="EntryComments">""";
     if ($e.comments.enabled) {
         if (($e.comments.count > 0 or $e.comments.screened) and $.view != "entry") {
-            $sidebar = $sidebar + """<a href="$e.comments.read_url">""" +
+            $sidebar = $sidebar + """<a href="$e.comments.read_url#$*text_comments_id">""" +
                 get_plural_phrase($e.comments.count, $.view == "friends" ?
                               "text_read_comments_friends" : "text_read_comments") +
             "</a>";
@@ -987,14 +987,14 @@
             $sidebar = $sidebar + "<br />";
         }
         if ($.view != "reply") {
-            $sidebar = $sidebar + """<a href="$e.comments.post_url">""" +
+            $sidebar = $sidebar + """<a href="$e.comments.post_url#$*text_addcomment_id">""" +
               ($.view == "friends" ? $*text_post_comment_friends : $*text_post_comment) + "</a><br />";
         }
         if (($e.comments.spam_counter > 0 or $e.comments.screened) and $.view == "entry" and $e.comments.read_spam_url != "") {
             if ($p.showspam) {
                   $sidebar = $sidebar + get_plural_phrase($e.comments.spam_counter, "text_read_spam_comments") + """<br />""";
             } else {
-                  $sidebar = $sidebar + """<a href=\"$e.comments.read_spam_url\">""" + get_plural_phrase($e.comments.spam_counter, "text_read_all_spam_comments") + """</a><br />""";
+                  $sidebar = $sidebar + """<a href=\"$e.comments.read_spam_url#$*text_comments_id\">""" + get_plural_phrase($e.comments.spam_counter, "text_read_all_spam_comments") + """</a><br />""";
             }
         }
     }
@@ -1287,7 +1287,7 @@
       $return = $return + "<b>[Page $i]</b><br />";
     } else {
       var string url_of = $.comment_pages->url_of($i);
-      $return = $return + """<a href="$url_of" class="link"><b>[Page $i]</b></a><br />""";
+      $return = $return + """<a href="$url_of#$*text_comments_id" class="link"><b>[Page $i]</b></a><br />""";
     }
   }
   return $return;
@@ -1351,7 +1351,7 @@
             "width" => "95%",
         };
         print safe dropshadow_open($opts);
-        print """<div style="background-color: $*weak_bgcolor; color: $*weak_fgcolor; padding: 5px;">""";
+        print """<div style="background-color: $*weak_bgcolor; color: $*weak_fgcolor; padding: 5px;" id="$*text_comments_id">""";
         if ($.comment_pages.total_subitems > 0) {
             $this->print_multiform_start();
             $this->print_comments($.comments);
@@ -1563,7 +1563,7 @@
         "fgcolor" => $offset.as_string,
         "width" => "95%",
   });
-  print """<div style="background-color: $*weak_bgcolor; color: $*weak_fgcolor; height: 100%">""";
+  print """<div style="background-color: $*weak_bgcolor; color: $*weak_fgcolor; height: 100%" id="$*text_addcomment_id">""";
   $.form->print();
   print """</div>""";
   print safe dropshadow_close({

Tags: ljcom, 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