/[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 480 by dpavlin, Thu Nov 20 14:39:43 2008 UTC revision 482 by dpavlin, Thu Nov 20 15:23:13 2008 UTC
# Line 188  sub page { Line 188  sub page {
188                  $body = '<!-- no body -->';                  $body = '<!-- no body -->';
189          }          }
190    
191            my $warn_colors = {
192                    '#'  => '#444',
193                    '##' => '#888',
194            };
195    
196          $status_line          $status_line
197                  .= qq|<span class="frey-popup">warn<code>|                  .= qq|<span class="frey-popup">warn<span>|
198                  . $self->editor_links( join("", $self->warnings ) )                  . $self->editor_links(
199                  . qq|</code></span>|                          join("", map {
200                                    warn "# $_";
201                                    my $style = '';
202                                    $style = $warn_colors->{$1}
203                                            ? ' style="color:' . $warn_colors->{$1} . '"'
204                                            : ''
205                                            if m{^(#+)};
206                                    qq|<tt$style>$_</tt><br/>|; # XXX <tt> should be <code> but CSS hates me
207                            } $self->warnings )
208                    )
209                    . qq|</span></span>|
210                  if $self->warnings;                  if $self->warnings;
211    
212          my      ($exit,$description) = ('exit','stop server');          my      ($exit,$description) = ('exit','stop server');

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

  ViewVC Help
Powered by ViewVC 1.1.26