mirror of
https://gitlab.com/depesz/explain.depesz.com.git
synced 2024-11-28 08:58:52 +02:00
Correctly display InitPlan details
This commit is contained in:
parent
e8a5c5ce02
commit
5d84a4356d
@ -425,30 +425,36 @@
|
||||
|
||||
% if ( $node->initplans ) {
|
||||
|
||||
% my $ip_node_id = $global_node_id++;
|
||||
% 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> </span></td>
|
||||
<td class="i<%= $cfg->{ vi } ? '' : ' tight' %>"><span> </span></td>
|
||||
<td class="x<%= $cfg->{ vx } ? '' : ' tight' %>"><span> </span></td>
|
||||
<td class="r<%= $cfg->{ vr } ? '' : ' tight' %>"><span> </span></td>
|
||||
<td class="l<%= $cfg->{ vl } ? '' : ' tight' %>"><span> </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>
|
||||
<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> </span></td>
|
||||
<td class="i<%= $cfg->{ vi } ? '' : ' tight' %>"><span> </span></td>
|
||||
<td class="x<%= $cfg->{ vx } ? '' : ' tight' %>"><span> </span></td>
|
||||
<td class="r<%= $cfg->{ vr } ? '' : ' tight' %>"><span> </span></td>
|
||||
<td class="l<%= $cfg->{ vl } ? '' : ' tight' %>"><span> </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 );
|
||||
% }
|
||||
% }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user