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

[livejournal] r19142: LJSUP-8689: donate button, doesn't visib...

Committer: mchervonniy
LJSUP-8689: donate button, doesn't visible for owner
U   trunk/bin/upgrading/s2layers/sixhtml/layout.s2
U   trunk/bin/upgrading/s2layers/sturdygesture/layout.s2
U   trunk/bin/upgrading/s2layers/tabularindent/layout.s2
Modified: trunk/bin/upgrading/s2layers/sixhtml/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/sixhtml/layout.s2	2011-05-26 09:31:47 UTC (rev 19141)
+++ trunk/bin/upgrading/s2layers/sixhtml/layout.s2	2011-05-26 09:34:34 UTC (rev 19142)
@@ -1149,8 +1149,10 @@
             $link->print_raw();
         }
         if ($link_key == "give_button") {
-	    print """ $sep """;
-            print $this->get_give_button("string");
+            var string give_button = $this->get_give_button("string");
+            if ($give_button != "") {
+                print safe """ $sep $give_button""";
+            }
         }
     }
 }

Modified: trunk/bin/upgrading/s2layers/sturdygesture/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/sturdygesture/layout.s2	2011-05-26 09:31:47 UTC (rev 19141)
+++ trunk/bin/upgrading/s2layers/sturdygesture/layout.s2	2011-05-26 09:34:34 UTC (rev 19142)
@@ -391,9 +391,10 @@
             $l->lay_print_li($*text_entry_links{$ls});
         }
         if ($ls == "give_button") {
-            print safe "<li>";
-            print $.entry->get_give_button("string");
-            print safe "</li>";
+            var string give_button = $.entry->get_give_button("string");
+            if ($give_button != "") {
+                print safe """<li>$give_button</li>""";
+            }
         }
     }
     $l = $.entry->get_link("nav_prev");

Modified: trunk/bin/upgrading/s2layers/tabularindent/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/tabularindent/layout.s2	2011-05-26 09:31:47 UTC (rev 19141)
+++ trunk/bin/upgrading/s2layers/tabularindent/layout.s2	2011-05-26 09:34:34 UTC (rev 19142)
@@ -606,8 +606,10 @@
                 $link->print_raw();
             }
             if ($link_key == "give_button") {
-                """ """;
-                print $e->get_give_button("button");
+                var string give_button = $e->get_give_button("button");
+                if ($give_button != "") {
+                    print safe """ $give_button""";
+                }
             }
         }
 

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