Максим Червонный (fiskus_boulder) wrote in changelog,
Максим Червонный
fiskus_boulder
changelog

[livejournal] r20850: LJSV-1984: Some styles no longer indents...

Committer: mchervonniy
LJSV-1984: Some styles no longer indents threaded comments
U   trunk/bin/upgrading/s2layers/cleansimple/layout.s2
Modified: trunk/bin/upgrading/s2layers/cleansimple/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/cleansimple/layout.s2	2011-12-23 08:36:52 UTC (rev 20849)
+++ trunk/bin/upgrading/s2layers/cleansimple/layout.s2	2011-12-23 09:15:08 UTC (rev 20850)
@@ -1087,7 +1087,7 @@
 }
 
 # Clean style. Hate to clutter it up with this:
-function EntryPage::print_comment (Comment c) {
+function EntryPage::print_comment_full (Comment c) {
     var Color background; var Color color;
     if ($c.screened) {
         $background = $*comment_bar_screened_bgcolor;
@@ -1172,9 +1172,8 @@
     if ($c.parent_url != "") { "(<a href='$c.parent_url'>Parent</a>) "; }
     if ($c.thread_url != "") {
         "(<a href='$c.thread_url'>Thread</a>) ";
-        var Link expand_link = $c->get_link("expand_comments");
-        if (defined $expand_link) {
-            "(" + $c->expand_link() + ") ";
+        if ($c.parent_url != "") {
+            $c->print_expand_collapse_links({ "expand"=>" %_", "collapse"=>" %_"}); 
         }
     }
     if (not $c.frozen) {

Tags: fiskus_boulder, livejournal, mchervonniy, s2
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