From: Dobrica Pavlinusic Date: Mon, 18 May 2009 19:15:05 +0000 (+0000) Subject: make dates link to correct revision X-Git-Url: http://git.rot13.org/?p=sysadmin-cookbook-html;a=commitdiff_plain;h=7cd12d88f74e84a75343307994f105e90ddc0933 make dates link to correct revision git-svn-id: file:///home/dpavlin/private/svn/sysadmin-cookbook-html@7 3e18072f-9615-4e06-9d3a-648eafba3f8d --- diff --git a/bin/html.pl b/bin/html.pl index 87d6dfa..537ded0 100755 --- a/bin/html.pl +++ b/bin/html.pl @@ -30,10 +30,11 @@ sub file { my $changes = join("\n", map { my $d = $_->{date}; - $d =~ s{\.\d+Z}{}; + $d =~ s{:\d\d\.\d+Z}{}; $d =~ s{T}{ }; - qq|
  • $_->{msg} $d
  • | - } @{ $log->{logentry} } + my $r = $_->{revision}; + qq|
  • $_->{msg} $d
  • | + } reverse @{ $log->{logentry} } ); $path =~ s{^$recepies/*(.*?[^/]+)$}{$1} || next; @@ -126,6 +127,7 @@ li .date { font-family: monospace; color: #888; float: right; + margin-right: 1em; }