Commit 5d84a435 authored by Hubert depesz Lubaczewski's avatar Hubert depesz Lubaczewski
Browse files

Correctly display InitPlan details

parent e8a5c5ce
......@@ -425,30 +425,36 @@
% if ( $node->initplans ) {
% my $ip_node_id = $global_node_id++;
<tr id="l<%= $global_node_id =%>" class="ip" data-node_id="<%= $ip_node_id =%>" data-node_parent="<%= $node_id =%>" data-level="<%= $level =%>">
<td class="u<%= $cfg->{ vu } ? '' : ' tight' %>"><span><a href="#l<%= $global_node_id =%>"><%= $global_node_id =%>.</a></span></td>
<td class="e<%= $cfg->{ ve } ? '' : ' tight' %>"><span>&nbsp;</span></td>
<td class="i<%= $cfg->{ vi } ? '' : ' tight' %>"><span>&nbsp;</span></td>
<td class="x<%= $cfg->{ vx } ? '' : ' tight' %>"><span>&nbsp;</span></td>
<td class="r<%= $cfg->{ vr } ? '' : ' tight' %>"><span>&nbsp;</span></td>
<td class="l<%= $cfg->{ vl } ? '' : ' tight' %>"><span>&nbsp;</span></td>
% if ( $buf_r ) {
<td class="bufr"></td>
% }
% if ( $buf_w ) {
<td class="bufw"></td>
% }
<td class="n">
<div class="n" style="margin-left:<%= $margin =%>px">
<p><span>Initplan (for <%= $node->type %>)</span></p>
</div>
</td>
</tr>
% for my $idx ( 0 .. $#{ $node->initplans } ) {
% my $initnode = $node->initplans->[$idx];
% my $meta = $node->initplans_metainfo->[$idx] if $node->initplans_metainfo;
% my $ip_node_id = $global_node_id++;
<tr id="l<%= $global_node_id =%>" class="ip" data-node_id="<%= $ip_node_id =%>" data-node_parent="<%= $node_id =%>" data-level="<%= $level =%>">
<td class="u<%= $cfg->{ vu } ? '' : ' tight' %>"><span><a href="#l<%= $global_node_id =%>"><%= $global_node_id =%>.</a></span></td>
<td class="e<%= $cfg->{ ve } ? '' : ' tight' %>"><span>&nbsp;</span></td>
<td class="i<%= $cfg->{ vi } ? '' : ' tight' %>"><span>&nbsp;</span></td>
<td class="x<%= $cfg->{ vx } ? '' : ' tight' %>"><span>&nbsp;</span></td>
<td class="r<%= $cfg->{ vr } ? '' : ' tight' %>"><span>&nbsp;</span></td>
<td class="l<%= $cfg->{ vl } ? '' : ' tight' %>"><span>&nbsp;</span></td>
% if ( $buf_r ) {
<td class="bufr"></td>
% }
% if ( $buf_w ) {
<td class="bufw"></td>
% }
<td class="n">
<div class="n" style="margin-left:<%= $margin =%>px">
% if ($meta) {
<p><span>InitPlan <%= $meta->{'name'} %> (for <%= $node->type %>) (returns <%= $meta->{'returns'} %>)</span></p>
% } else {
<p><span>InitPlan (for <%= $node->type %>)</span></p>
% }
</div>
</td>
</tr>
% for ( @{ $node->initplans } ) {
%== $block->( $_, $level + 1, $ip_node_id );
%== $block->( $initnode, $level + 1, $ip_node_id );
% }
% }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment