24 |
has 'request_url' => ( |
has 'request_url' => ( |
25 |
is => 'rw', |
is => 'rw', |
26 |
isa => 'Uri', coerce => 1, |
isa => 'Uri', coerce => 1, |
27 |
default => '/', |
required => 1, |
28 |
|
# default => '/', |
29 |
); |
); |
30 |
|
|
31 |
has 'title' => ( |
has 'title' => ( |
370 |
sub clean_status { |
sub clean_status { |
371 |
my ($self) = shift; |
my ($self) = shift; |
372 |
@head = ( 'static/frey.css' ); |
@head = ( 'static/frey.css' ); |
373 |
|
my $params = { request_url => $self->request_url }; |
374 |
@status = ( |
@status = ( |
375 |
{ 'ClassBrowser' => Frey::ClassBrowser->new( usage_on_top => 0 )->as_markup }, |
{ 'ClassBrowser' => Frey::ClassBrowser->new( %$params, usage_on_top => 0 )->as_markup }, |
376 |
{ 'Bookmarklets' => Frey::Bookmarklet->new->as_markup }, |
{ 'Bookmarklets' => Frey::Bookmarklet->new( %$params )->as_markup }, |
377 |
{ 'INC' => Frey::INC->new->as_markup }, |
{ 'INC' => Frey::INC->new( %$params )->as_markup }, |
378 |
); |
); |
379 |
$icon_html = ''; |
$icon_html = ''; |
380 |
} |
} |
534 |
$msg = qq|<span class="$class">$msg</span>|; |
$msg = qq|<span class="$class">$msg</span>|; |
535 |
} |
} |
536 |
|
|
537 |
$msg .= $spacer . |
#$msg .= $spacer . qq|<a target="editor" href="/editor+$path+$line" style="float: right;">$line</a>\n|; |
538 |
qq|<a target="editor" href="/editor+$path+$line" style="float: right;">+$line</a>\n|; |
$msg = qq|<a target="editor" href="/editor+$path+$line" style="float: right;">$line</a>$msg| |
539 |
|
. ( $spacer ? $spacer : '' ) |
540 |
|
. "\n"; # XXX <pre> needs this |
541 |
|
|
542 |
$warnings[ $pos++ % $max ] = $msg; |
$warnings[ $pos++ % $max ] = $msg; |
543 |
} |
} |
548 |
my $size = -s $path; |
my $size = -s $path; |
549 |
|
|
550 |
my $warnings = join("", |
my $warnings = join("", |
551 |
map { $warnings[ ( $pos + $_ ) % $max ] || '' } 1 .. $max |
map { $warnings[ ( $pos + $_ ) % $max ] || '' } 0 .. ( $max - 1 ) |
552 |
); |
); |
553 |
|
|
554 |
my $s = length($warnings); |
my $s = length($warnings); |