whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From curc...@apache.org
Subject [whimsy] branch master updated: Only emit panel if helpblock provided
Date Fri, 09 Jun 2017 19:35:44 GMT
This is an automated email from the ASF dual-hosted git repository.

curcuru pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 5a09738  Only emit panel if helpblock provided
5a09738 is described below

commit 5a09738d319ac5e003c6f9a137588c590ddb688d
Author: Shane Curcuru <asf@shanecurcuru.org>
AuthorDate: Fri Jun 9 15:35:40 2017 -0400

    Only emit panel if helpblock provided
    
    Allows for panel header to flow directly to table from yield
---
 lib/whimsy/asf/themes.rb | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lib/whimsy/asf/themes.rb b/lib/whimsy/asf/themes.rb
index 0417cbd..349c57c 100644
--- a/lib/whimsy/asf/themes.rb
+++ b/lib/whimsy/asf/themes.rb
@@ -121,8 +121,10 @@ class Wunderbar::HtmlMarkup
           _ title
         end
       end
-      _div.panel_body do
-        helpblock.call if helpblock
+      if helpblock
+        _div.panel_body do
+          helpblock.call
+        end
       end
       yield
     end

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <commits@whimsical.apache.org>'].

Mime
View raw message