Skip to content
Browse files

clean template and change title for parameters

  • Loading branch information...
1 parent 9ccdf34 commit dc6cda80052051ef89ab1866b62535189fe94cb1 franck cuny committed
Showing with 3 additions and 1 deletion.
  1. +1 −1 lib/Plack/Middleware/Debug/Base.pm
  2. +2 −0 lib/Plack/Middleware/Debug/Parameters.pm
View
2 lib/Plack/Middleware/Debug/Base.pm
@@ -80,7 +80,7 @@ sub render {
my $list_section_template = __PACKAGE__->build_template(<<'EOTMPL');
% foreach my $s (@{$_[0]->{sections}}) {
<h3><%= $s %></h3>
-% if ($_[0]->{list}->{$s}) {
+% if (scalar @{$_[0]->{list}->{$s}}) {
<table>
<thead>
<tr>
View
2 lib/Plack/Middleware/Debug/Parameters.pm
@@ -17,6 +17,8 @@ sub run {
post => $request->body_parameters,
session => $env->{'psgix.session'},
};
+ $panel->title('Request Vars');
+ $panel->nav_title('Request Vars');
$panel->content( sub { $self->render_hash( $parameters, \@sections ) } );
}
}

0 comments on commit dc6cda8

Please sign in to comment.
Something went wrong with that request. Please try again.