/[Frey]/branches/zimbardo/lib/Frey/Web.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /branches/zimbardo/lib/Frey/Web.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 611 by dpavlin, Fri Nov 28 23:34:26 2008 UTC revision 625 by dpavlin, Sat Nov 29 17:48:54 2008 UTC
# Line 24  sub head { @head } Line 24  sub head { @head }
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' => (
# Line 369  Called at beginning of each request Line 370  Called at beginning of each request
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  }  }
# Line 532  sub warnings_html { Line 534  sub warnings_html {
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                  }                  }
# Line 544  sub warnings_html { Line 548  sub warnings_html {
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);

Legend:
Removed from v.611  
changed lines
  Added in v.625

  ViewVC Help
Powered by ViewVC 1.1.26