[Rt-commit] r19244 - in rt/3.8/trunk: .

sartak at bestpractical.com sartak at bestpractical.com
Thu Apr 16 20:09:16 EDT 2009


Author: sartak
Date: Thu Apr 16 20:09:16 2009
New Revision: 19244

Modified:
   rt/3.8/trunk/   (props changed)
   rt/3.8/trunk/share/html/Dashboards/Render.html

Log:
 r82239 at onn:  sartak | 2009-04-16 20:09:04 -0400
 Pass Pane to the portlet renderer


Modified: rt/3.8/trunk/share/html/Dashboards/Render.html
==============================================================================
--- rt/3.8/trunk/share/html/Dashboards/Render.html	(original)
+++ rt/3.8/trunk/share/html/Dashboards/Render.html	Thu Apr 16 20:09:16 2009
@@ -58,12 +58,12 @@
 <tr valign="top">
 
 <td class="boxcontainer">
-% $show_cb->($_) foreach @{ $panes{body} || [] };
+% $show_cb->($_, 'body') foreach @{ $panes{body} || [] };
 </td>
 
 % if (@{ $panes{sidebar} || [] }) {
 <td class="boxcontainer">
-% $show_cb->($_) foreach @{ $panes{sidebar} || [] };
+% $show_cb->($_, 'sidebar') foreach @{ $panes{sidebar} || [] };
 </td>
 % }
 
@@ -101,6 +101,8 @@
 
 my $show_cb = sub {
     my $portlet = shift;
+    my $pane = shift;
+
     my $portlet_type = $portlet->{portlet_type};
     my $comp = "Elements/ShowPortlet/$portlet_type";
     $m->comp($comp,
@@ -108,6 +110,7 @@
         Rows      => $rows,
         Preview   => $Preview,
         Dashboard => $DashboardObj,
+        Pane      => $pane,
     );
 };
 </%INIT>


More information about the Rt-commit mailing list