/[Frey]/trunk/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 /trunk/lib/Frey/Web.pm

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

revision 389 by dpavlin, Tue Nov 18 00:30:29 2008 UTC revision 392 by dpavlin, Tue Nov 18 00:55:23 2008 UTC
# Line 24  has 'status' => ( Line 24  has 'status' => (
24          ] },          ] },
25  );  );
26    
27  has 'urequest_url' => (  has 'request_url' => (
28          is => 'rw',          is => 'rw',
29          isa => 'Uri', coerce => 1,          isa => 'Uri', coerce => 1,
30          default => '/',          default => '/',
# Line 125  sub page { Line 125  sub page {
125          my $status_line = '';          my $status_line = '';
126          foreach my $part ( @{ $self->status } ) {          foreach my $part ( @{ $self->status } ) {
127                  foreach my $name ( keys %$part ) {                  foreach my $name ( keys %$part ) {
128                          warn "### part [$name] = ", length( $part->{name} ), " bytes" if $self->debug;                          my $content = $part->{$name};
129                          $status_line .= qq|<span class="frey-popup">$name<span>| . $part->{$name} . qq|</span></span>|;                          if ( ref($content) ) {
130                                    $content = '<code>' . dump( $content ) . '</code>';
131                            } else {
132                                    $content = qq|<span>$content</span>|;
133                            }
134                            warn "### part [$name] = ", length( $content ), " bytes" if $self->debug;
135                            $status_line .= qq|<span class="frey-popup">$name $content</span>|;
136                  }                  }
137          }          }
138    
# Line 141  sub page { Line 147  sub page {
147                  qq|                  qq|
148                  <div class="frey-status-line">                  <div class="frey-status-line">
149                          <a href="/">Frey</a> $Frey::VERSION                          <a href="/">Frey</a> $Frey::VERSION
150                          <a href="?reload=$reload_counter"><code>| . $self->urequest_url . qq|</code></a>                          <a href="?reload=$reload_counter"><code>| . $self->request_url . qq|</code></a>
151                          $status_line                          $status_line
152                  </div>                  </div>
153              </body></html>              </body></html>

Legend:
Removed from v.389  
changed lines
  Added in v.392

  ViewVC Help
Powered by ViewVC 1.1.26