yokcel (yokcel) wrote in changelog,
yokcel
yokcel
changelog

[ljcom] r11694: LJSUP-11708: New style - Kite in Clouds

Committer: ybuhvalova
LJSUP-11708: New style - Kite in Clouds
U   trunk/bin/upgrading/s2layers/sup/layout.s2
Modified: trunk/bin/upgrading/s2layers/sup/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/sup/layout.s2	2012-04-11 11:58:32 UTC (rev 11693)
+++ trunk/bin/upgrading/s2layers/sup/layout.s2	2012-04-11 12:03:59 UTC (rev 11694)
@@ -69,6 +69,12 @@
     property use page_year_sortorder;
     property use use_shared_pic;
     property use view_entry_disabled;
+
+    property bool hide_comment_controls { 
+        noui = 1;
+        des = "Hide control buttons (Delete, Spam, Freeze, etc.) that appear in the comment header when you move the mouse over it";
+        } 
+        set hide_comment_controls = false;
     
 }
 propgroup colors {
@@ -1603,6 +1609,7 @@
     var Page p = get_page();
     var string poster = defined $c.poster ? _user_print($c.poster, "microformatted") : "<em>$*text_poster_anonymous</em>";
     var string evenodd = $c.depth % 2 ? "odd" : "even";
+    var string hide_controls = $*hide_comment_controls ? " hide-comment-controls" : "";
     if (defined $c.userpic and $*comment_userpic_style != "off") {
         var int w = $c.userpic.width;
         var int h = $c.userpic.height;
@@ -1628,17 +1635,20 @@
         "</p>";
         "</div>";
     } else {
-        """<div class="comment-head-in">""";
+        """<div class="comment-head-in""" + $hide_controls + """">""";
         if (defined $c.subject_icon or $c.subject != "") {
             """<h3>$c.subject_icon $c.subject</h3>""";
         }
         "<p>$poster</p>";
         """<p><a class="comment-permalink" href="$c.permalink_url">""" + $c->time_display() +    "</a>";
-        if ($this.multiform_on) {
-            print safe """ <label for="ljcomsel_$c.talkid">$*text_multiform_check</label>""";
-            $c->print_multiform_check();
-        }
-        $c->print_linkbar();
+
+        """<span class="comment-controls">""";
+            if ($this.multiform_on) {
+                print safe """ <label for="ljcomsel_$c.talkid">$*text_multiform_check</label>""";
+                $c->print_multiform_check();
+            }
+            $c->print_linkbar();
+        """</span>""";
         "</p>";
         if ($c.metadata{"poster_ip"}) { "<p>(" + $c.metadata{"poster_ip"} + ")</p>"; }
         "</div>";

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