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

[ljcom] r10569: LJSUP-8689: donate button, doesn't visib...

Committer: mchervonniy
LJSUP-8689: donate button, doesn't visible for owner
U   trunk/bin/upgrading/s2layers/anovelconundrum/layout.s2
U   trunk/bin/upgrading/s2layers/flexiblesquares/layout.s2
U   trunk/bin/upgrading/s2layers/nebula/layout.s2
U   trunk/bin/upgrading/s2layers/smoothsailing/layout.s2
U   trunk/bin/upgrading/s2layers/tranquilityii/layout.s2
U   trunk/bin/upgrading/s2layers/unearthed/layout.s2
U   trunk/bin/upgrading/s2layers/voxhtml/layout.s2
Modified: trunk/bin/upgrading/s2layers/anovelconundrum/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/anovelconundrum/layout.s2	2011-05-26 05:49:11 UTC (rev 10568)
+++ trunk/bin/upgrading/s2layers/anovelconundrum/layout.s2	2011-05-26 09:35:48 UTC (rev 10569)
@@ -782,8 +782,10 @@
             $link->print_raw();
         }
         if ($k == "give_button") {
-            print safe """ · """;
-            print $this->get_give_button("string");
+            var string give_button = $this->get_give_button("string");
+            if ($give_button != "") {
+                print safe """ · $give_button""";
+            }
         }
     }
 

Modified: trunk/bin/upgrading/s2layers/flexiblesquares/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/flexiblesquares/layout.s2	2011-05-26 05:49:11 UTC (rev 10568)
+++ trunk/bin/upgrading/s2layers/flexiblesquares/layout.s2	2011-05-26 09:35:48 UTC (rev 10569)
@@ -1831,8 +1831,10 @@
                 $link->print_raw();
             }
             if ($link_key == "give_button") {
-	        print $this->get_give_button("string");
-                print safe """ | """;
+                var string give_button = $this->get_give_button("string");
+                if ($give_button != "") {
+                    print safe """$give_button | """;
+                }
             }
         }
 

Modified: trunk/bin/upgrading/s2layers/nebula/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/nebula/layout.s2	2011-05-26 05:49:11 UTC (rev 10568)
+++ trunk/bin/upgrading/s2layers/nebula/layout.s2	2011-05-26 09:35:48 UTC (rev 10569)
@@ -1463,8 +1463,10 @@
                 $l->print_raw();
             }
             if ($ls == "give_button") {
-	    	print safe $link_separator;
-                print $e->get_give_button("string");
+                var string give_button = $e->get_give_button("string");
+                if ($give_button != "") {
+                    print safe "$link_separator$give_button";
+                }
             }
         }
     }

Modified: trunk/bin/upgrading/s2layers/smoothsailing/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/smoothsailing/layout.s2	2011-05-26 05:49:11 UTC (rev 10568)
+++ trunk/bin/upgrading/s2layers/smoothsailing/layout.s2	2011-05-26 09:35:48 UTC (rev 10569)
@@ -1738,9 +1738,10 @@
               $link->print_raw();
             }
             if ($link_key == "give_button") {
-                print safe """<li>""";
-	        print $this->get_give_button("string");
-                print safe """</li>""";
+                var string give_button = $this->get_give_button("string");
+                if ($give_button != "") {
+                    print safe """<li>$give_button</li>""";
+                }
             }
           }
           """

Modified: trunk/bin/upgrading/s2layers/tranquilityii/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/tranquilityii/layout.s2	2011-05-26 05:49:11 UTC (rev 10568)
+++ trunk/bin/upgrading/s2layers/tranquilityii/layout.s2	2011-05-26 09:35:48 UTC (rev 10569)
@@ -1222,8 +1222,10 @@
                 $link->print_raw();
             }
             if ($link_key == "give_button") {
-                print safe """ | """;
-                print $e->get_give_button("string");
+                var string give_button = $e->get_give_button("string");
+                if ($give_button != "") {
+                    print safe """ | $give_button""";
+                }
             }
         }
         print "</h4>";

Modified: trunk/bin/upgrading/s2layers/unearthed/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/unearthed/layout.s2	2011-05-26 05:49:11 UTC (rev 10568)
+++ trunk/bin/upgrading/s2layers/unearthed/layout.s2	2011-05-26 09:35:48 UTC (rev 10569)
@@ -1008,7 +1008,10 @@
                 $sidebar = $sidebar + """<a href="$l.url">$l.caption</a><br /> """;
             }
             if ($ls == "give_button") {
-                $sidebar = $sidebar + $e->get_give_button("string") + "<br/>";
+                var string give_button = $e->get_give_button("string");
+                if ($give_button != "") {
+                    $sidebar = $sidebar + $give_button + "<br/>";
+                }
             }
         }
     }

Modified: trunk/bin/upgrading/s2layers/voxhtml/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/voxhtml/layout.s2	2011-05-26 05:49:11 UTC (rev 10568)
+++ trunk/bin/upgrading/s2layers/voxhtml/layout.s2	2011-05-26 09:35:48 UTC (rev 10569)
@@ -2151,9 +2151,10 @@
 
     foreach var string link_key ($.link_keyseq) {
         if ($link_key == "give_button") {
-            print safe """<li class="asset-meta-comments item asset-meta-no-comments">""";
-            print $this->get_give_button("string");
-            print safe """</li>""";
+            var string give_button = $this->get_give_button("string");
+            if ($give_button != "") {
+                print safe """<li class="asset-meta-comments item asset-meta-no-comments">$give_button</li>""";
+            }
         } else {
             $link = $this->get_link($link_key);
             if (defined $link) {

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