20 |
default => 'file:///home/dpavlin/private/svn/Frey', |
default => 'file:///home/dpavlin/private/svn/Frey', |
21 |
); |
); |
22 |
|
|
23 |
|
has path => ( |
24 |
|
is => 'rw', |
25 |
|
isa => 'Str' |
26 |
|
); |
27 |
|
|
28 |
has limit => ( |
has limit => ( |
29 |
is => 'rw', |
is => 'rw', |
30 |
isa => 'Int', |
isa => 'Int', |
53 |
return; |
return; |
54 |
} |
} |
55 |
|
|
56 |
my $path = $self->repository; |
my $path = $self->repository . $self->path; |
57 |
warn "# path $path\n"; |
warn "# path $path\n"; |
58 |
|
|
59 |
my $cmd; |
my $cmd; |
120 |
return $foo; |
return $foo; |
121 |
} |
} |
122 |
|
|
123 |
our $html = qq|<h1>| . $self->repository . qq|</h1>|; |
my $repository = $self->repository; |
124 |
|
my $path = $self->path; |
125 |
|
|
126 |
|
our $html = qq| |
127 |
|
<h1><a href="?repository=$repository">$repository</a></h1> |
128 |
|
<h2>$path</h2> |
129 |
|
|; |
130 |
|
|
131 |
$self->add_css(qq| |
$self->add_css(qq| |
132 |
.commit { |
.commit { |
142 |
float: right; |
float: right; |
143 |
padding-bottom: 1.2em; /* fix 80% back to original 1em */ |
padding-bottom: 1.2em; /* fix 80% back to original 1em */ |
144 |
} |
} |
145 |
|
.files a { |
146 |
|
text-decoration: none; |
147 |
|
color: #888; |
148 |
|
} |
149 |
.date, .revision { color: #666; } |
.date, .revision { color: #666; } |
150 |
.message { |
.message { |
151 |
padding-top: 0.5em; |
padding-top: 0.5em; |
189 |
|
|
190 |
$html .= qq| |
$html .= qq| |
191 |
<div class="commit"> |
<div class="commit"> |
192 |
<span class="date">$date</span> |
<span class="date">$date</span> |
193 |
<em>$e->{author}</em> |
<em>$e->{author}</em> |
194 |
<span class="revision">$e->{revision}</span> |
<span class="revision">$e->{revision}</span> |
195 |
<div class="files">\n| . join("<br>\n",@files) . qq|\n</div> |
<div class="files">\n |
196 |
$msg |
| |
197 |
|
. join("<br>\n", |
198 |
|
map { |
199 |
|
qq|<a href="?repository=$repository;path=$_">$_</a>| |
200 |
|
} @files |
201 |
|
) |
202 |
|
. qq| |
203 |
|
</div> |
204 |
|
$msg |
205 |
</div> |
</div> |
206 |
|; |
|; |
207 |
|
|