/[Frey]/trunk/lib/Frey/Run.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/lib/Frey/Run.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 353 by dpavlin, Sun Nov 16 14:07:13 2008 UTC revision 361 by dpavlin, Sun Nov 16 17:20:26 2008 UTC
# Line 115  sub html { Line 115  sub html {
115                          } elsif ( $self->run eq 'sponge' ) {                          } elsif ( $self->run eq 'sponge' ) {
116                                  my $data = $o->sponge;                                  my $data = $o->sponge;
117                                  confess "invalid data from sponge = ", dump( $data ) unless ref($data) eq 'HASH';                                  confess "invalid data from sponge = ", dump( $data ) unless ref($data) eq 'HASH';
118                                    my $rows = $#{ $data->{rows} } + 1;
119                                    $rows ||= 'no';
120                                    $html .= "<strong>$rows</strong> rows from <code>$class->new" . dump( $self->params ) . "->sponge</code>";
121                                  $html .= '<table>';                                  $html .= '<table>';
122                                  $html .= '<tr><th>' . join('</th><th>', @{$data->{NAME}} ) . '</th></tr>';                                  $html .= '<tr><th>' . join('</th><th>', @{$data->{NAME}} ) . '</th></tr>';
123                                  $html .= '<tr><td>' . join('</td><td>', @$_ ) . '</td></tr>' foreach @{ $data->{rows} };                                  $html .= '<tr><td>' . join('</td><td>', @$_ ) . '</td></tr>' foreach @{ $data->{rows} };
# Line 131  sub html { Line 134  sub html {
134                  $html .= $self->error( $@ ) if $@;                  $html .= $self->error( $@ ) if $@;
135          }          }
136    
137            return $self->page( %$html ) if ref($html) eq 'HASH';
138          return $self->page( title => $class, body => $html );          return $self->page( title => $class, body => $html );
139  }  }
140    

Legend:
Removed from v.353  
changed lines
  Added in v.361

  ViewVC Help
Powered by ViewVC 1.1.26