[Jifty-commit] r578 - in jifty/trunk: lib/Jifty/Mason
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Mon Feb 13 10:40:12 EST 2006
Author: alexmv
Date: Mon Feb 13 10:40:09 2006
New Revision: 578
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/Mason/Halo.pm
Log:
r9079 at zoq-fot-pik: chmrr | 2006-02-13 10:39:23 -0500
* Be nice and generate valid HTML
Modified: jifty/trunk/lib/Jifty/Mason/Halo.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Mason/Halo.pm (original)
+++ jifty/trunk/lib/Jifty/Mason/Halo.pm Mon Feb 13 10:40:09 2006
@@ -73,7 +73,7 @@
<span class="halo_name" onClick="toggle_display('halo-@{[$stack_frame->{'id'}]}-menu')">@{[$stack_frame->{'name'}]}</span>
<dl>
<dt>Path</dt>
-<dt>@{[$stack_frame->{'path'}]}</dd>
+<dd>@{[$stack_frame->{'path'}]}</dd>
<dt>Render time</dt>
<dd>@{[$stack_frame->{'render_time'}]}</dd>
<dt>});
@@ -127,7 +127,7 @@
if ( $item->{depth} > $depth ) {
Jifty->web->mason->out("<ul>");
} elsif ( $item->{depth} < $depth ) {
- Jifty->web->mason->out("</ul>\n");
+ Jifty->web->mason->out("</ul>\n") for ($item->{depth}+1 .. $depth);
}
Jifty->web->mason->out( "<li>");
@@ -138,16 +138,16 @@
. $item->{'path'} . " - "
. $item->{'render_time'}
. qq{</span> }
- );
+ );
- Jifty->web->mason->out(Jifty->web->tangent( url =>"/=/edit/mason_component/".$item->{'path'}, label => 'Edit'))
- unless ($item->{subcomponent});
- $self->render_halo_actions($item);
- Jifty->web->mason->out( "</li>");
+ Jifty->web->mason->out(Jifty->web->tangent( url =>"/=/edit/mason_component/".$item->{'path'}, label => 'Edit'))
+ unless ($item->{subcomponent});
+ $self->render_halo_actions($item);
+ Jifty->web->mason->out( "</li>");
$depth = $item->{'depth'};
}
- Jifty->web->mason->out('</ul>');
+ Jifty->web->mason->out("</ul>\n") for (1 .. $depth);
Jifty->web->mason->out('</div>');
}
More information about the Jifty-commit
mailing list