X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FApp%2FWeb%2FOof.pm;h=90cf972664abf33caa93978b80cc81093af40943;hb=d90c4f6e2a289164e2bfc0057cd89fdd5c9f68e1;hp=429c97f8ec958a7e0391bb01985143aaba9dc833;hpb=39be4169dc876760f6eddb58e550419fc37206e7;p=app-web-oof.git diff --git a/lib/App/Web/Oof.pm b/lib/App/Web/Oof.pm index 429c97f..90cf972 100644 --- a/lib/App/Web/Oof.pm +++ b/lib/App/Web/Oof.pm @@ -6,7 +6,7 @@ use warnings; use utf8; use parent qw/Plack::Component/; -our $VERSION = '0.000_002'; +our $VERSION = '0.000_003'; use DBIx::Simple; use File::Slurp; @@ -205,7 +205,7 @@ sub details_app { my $title = $db{$$}->select(products => 'title', {product => $id})->list; my @pics = ; my $slug = make_slug $title; - $tree->find('title')->replace_content("Pictures of $title"); + $tree->find('title')->replace_content("Pictures of $title | ledparts4you"); $tree->find('h2')->replace_content($title); $tree->look_down(rel => 'canonical')->attr(href => "/details/$id/$slug"); $tree->fid('pictures')->iter3(\@pics, \&details_list_element); @@ -231,7 +231,7 @@ sub app { my $app = shift; sub { my $res = $app->(@_); - push @{$res->[2]}, $footer; + push @{$res->[2]}, $footer if $res->[0] == 200; $res; } };