/[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 482 by dpavlin, Thu Nov 20 15:23:13 2008 UTC revision 516 by dpavlin, Tue Nov 25 14:14:21 2008 UTC
# Line 12  use File::Slurp; Line 12  use File::Slurp;
12    
13  use Frey::Bookmarklet;  use Frey::Bookmarklet;
14  use Frey::ClassBrowser;  use Frey::ClassBrowser;
15    use Frey::SVK;
16    
17  has 'head' => (  has 'head' => (
18          is => 'rw',          is => 'rw',
# Line 221  sub page { Line 222  sub page {
222                          </span>                          </span>
223                  |;                  |;
224    
225            my $info = Frey::SVK->info;
226            my $revision = Frey::SVK->info->{Revision} || '';
227            $revision = $1 if $info->{'Mirrored From'} =~ m{Rev\.\s+(\d+)};
228    
229          my $html = join("\n",          my $html = join("\n",
230                  qq|<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"><html><head>|,                  qq|<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"><html><head>|,
231                  $self->_head_html,                  $self->_head_html,
# Line 231  sub page { Line 236  sub page {
236                  </head><body>                  </head><body>
237                  $body                  $body
238                  <div class="frey-status-line">                  <div class="frey-status-line">
239                          <a href="/">Frey</a> $Frey::VERSION                          <a href="/">Frey</a> $Frey::VERSION $revision
240                          $status_line                          $status_line
241                          $right                          $right
242                  </div>                  </div>
# Line 296  sub error { Line 301  sub error {
301                  ;                  ;
302  }  }
303    
304    sub add_status {
305            my ( $self, $data ) = @_;
306            push @{ $self->status }, $data;
307            warn "## current status ", $#{ $self->status }, " elements";
308    }
309    
310  1;  1;

Legend:
Removed from v.482  
changed lines
  Added in v.516

  ViewVC Help
Powered by ViewVC 1.1.26