X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FGruntmaster%2FPage%2FLog.pm;h=c92bf4d82ab962cfbab64f9df3a31b1ddd6db562;hb=6d28cb383168de84cebad84aa43900844341bf5d;hp=d276f558b0b38313440da4cc5e850fa8a30caec7;hpb=fe78f0c128c35e68e65850b02057997bad6717fe;p=plack-app-gruntmaster.git diff --git a/lib/Gruntmaster/Page/Log.pm b/lib/Gruntmaster/Page/Log.pm index d276f55..c92bf4d 100644 --- a/lib/Gruntmaster/Page/Log.pm +++ b/lib/Gruntmaster/Page/Log.pm @@ -14,7 +14,7 @@ use HTML::Template::Compiled; use IO::File; use POSIX qw/strftime/; use YAML::Any qw/LoadFile/; -use Gruntmaster::Page qw/header footer/; +use Gruntmaster::Page::Common qw/header footer/; my %templates = ( en => <<'HTML', @@ -46,7 +46,7 @@ sub generate{ my @log = sort { $b->{id} <=> $a->{id} } map { my $meta = LoadFile "$path/$_/meta.yml"; +{ id => $_, - date => strftime ('%c' => localtime $meta->{date}), + date => (exists $meta->{date} ? strftime ('%c' => localtime $meta->{date}) : '?'), user => $meta->{user}, result => $meta->{result}, name => $meta->{name},