122 |
$body .= '<tr><th>' . join('</th><th>', @{$data->{NAME}} ) . '</th></tr>'; |
$body .= '<tr><th>' . join('</th><th>', @{$data->{NAME}} ) . '</th></tr>'; |
123 |
$body .= '<tr><td>' . join('</td><td>', @$_ ) . '</td></tr>' foreach @{ $data->{rows} }; |
$body .= '<tr><td>' . join('</td><td>', @$_ ) . '</td></tr>' foreach @{ $data->{rows} }; |
124 |
$body .= '</table>'; |
$body .= '</table>'; |
125 |
|
|
126 |
|
$self->add_css(qq| |
127 |
|
tr:nth-child(even) { |
128 |
|
background-color: #eee; |
129 |
|
} |
130 |
|
|); |
131 |
|
|
132 |
delete( $data->{rows} ); # too much dumplication |
delete( $data->{rows} ); # too much dumplication |
133 |
$body .= Frey::View::Dumper->new( data => $data )->as_markup if $data; |
$body .= Frey::View::Dumper->new( data => $data )->as_markup if $data; |
134 |
} |
} |