11 |
#with 'Frey::Storage'; |
#with 'Frey::Storage'; |
12 |
|
|
13 |
use XML::Simple; |
use XML::Simple; |
14 |
|
use DateTimeX::Easy; |
15 |
|
|
16 |
has repository => ( |
has repository => ( |
17 |
is => 'rw', |
is => 'rw', |
140 |
push @files, "<ins>$path</ins>"; |
push @files, "<ins>$path</ins>"; |
141 |
} elsif ($action eq "D") { |
} elsif ($action eq "D") { |
142 |
push @files, "<del>$path</del>"; |
push @files, "<del>$path</del>"; |
143 |
} else{ |
} else { |
144 |
push @files, $path; |
push @files, $path; |
145 |
} |
} |
146 |
} |
} |
147 |
|
|
148 |
html '<blockquote><p><tt style="color:#808080">',join(", ",@files),':</tt> ',encode($e->{'msg'}),'</p></blockquote>'; |
my $msg = $e->{'msg'}; |
149 |
|
$msg = '' if ref($msg); # FIXME why do I need this, dammit? |
150 |
|
$msg = encode( $msg ); |
151 |
|
|
152 |
|
html '<blockquote><p><tt style="color:#808080">',join(", ",@files),'</tt> ',$msg,'</p></blockquote>'; |
153 |
|
|
154 |
}); |
}); |
155 |
|
|
167 |
my $e = shift; |
my $e = shift; |
168 |
|
|
169 |
my $rev = $e->{'revision'}; |
my $rev = $e->{'revision'}; |
170 |
my $date = $e->{'date'}; |
my $date = DateTimeX::Easy->new( $e->{'date'} )->epoch . '000'; # ms |
171 |
my $author = $e->{'author'}; |
my $author = $e->{'author'}; |
172 |
|
|
173 |
foreach my $p (@{$e->{'paths'}->{'path'}}) { |
foreach my $p (@{$e->{'paths'}->{'path'}}) { |