]> iEval git - plack-app-gruntmaster.git/blobdiff - lib/Gruntmaster/Page/Log.pm
Close form element in Pb::Entry
[plack-app-gruntmaster.git] / lib / Gruntmaster / Page / Log.pm
index d276f558b0b38313440da4cc5e850fa8a30caec7..c92bf4d82ab962cfbab64f9df3a31b1ddd6db562 100644 (file)
@@ -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},
This page took 0.020418 seconds and 4 git commands to generate.