[ljcom] r11227: LJSUP-10206: There is no link to Collaps...

Committer: mchervonniy
LJSUP-10206: There is no link to Collapse in Gradient Strip style
U   trunk/bin/upgrading/s2layers/boxer/layout.s2
Modified: trunk/bin/upgrading/s2layers/boxer/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/boxer/layout.s2	2011-11-30 09:38:58 UTC (rev 11226)
+++ trunk/bin/upgrading/s2layers/boxer/layout.s2	2011-11-30 10:21:36 UTC (rev 11227)
@@ -1397,6 +1397,10 @@
         $c->print_expand_collapse_links({ "expand"=>" %_ ", "collapse"=>" %_ "}); 
     }
 
+    # This block doesn't work for anonymous poster
+    # I decide not to show this links, but show comment text
+    # TODO it later
+    if(defined $c.poster) {
     var string{} link_image = {
         "edit_comment" => $*edit_comment,
         "delete_comment" => $*delete,
@@ -1431,6 +1435,7 @@
             """<span class="icon"><a href="$lnk.url"><img$img_id src="$img_url" border="0" alt="$lnk.caption" title="$lnk.caption" width="20" height="21" align="middle" /></a></span>""";
         }
     }
+    }
     $c->print_reply_container(); """