Skip to content

Commit

Permalink
Behave more sanely when last build time not available
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Aug 6, 2017
1 parent 6831e0f commit ee44a27
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions templates/layouts/default.html.ep
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,10 @@
This page was generated from the files in the
<a href="http://github.com/perl6/modules.perl6.org/"
>modules.perl6.org repository</a>
on <i class="build_last_updated"><%=
localtime(
stash('last_updated')
? stash('last_updated')
: build_stats->stats('last_updated')->{last_updated}
)
on <i class="build_last_updated">
% my $last_update = stash('last_updated')
% || build_stats->stats('last_updated')->{last_updated};
<%= $last_update ? localtime($last_update) : '(unknown date)'
%></i>.
<a href="/update.log">
<i class="glyphicon glyphicon-log-in"></i>
Expand Down

0 comments on commit ee44a27

Please sign in to comment.