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

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

revision 854 by dpavlin, Mon Dec 15 21:00:05 2008 UTC revision 1100 by dpavlin, Sun Jun 28 22:22:20 2009 UTC
# Line 6  with 'Frey::Web'; Line 6  with 'Frey::Web';
6  with 'Frey::Session';  with 'Frey::Session';
7  with 'Frey::Web::CombineImages';  with 'Frey::Web::CombineImages';
8    
9    use lib 'lib';
10    
11  use Frey::Run;  use Frey::Run;
12  use Data::Dump qw/dump/;  use Data::Dump qw/dump/;
13    
# Line 53  sub as_markup { Line 55  sub as_markup {
55                  my $html                  my $html
56                          = qq|<tr><td>$icon</td><td><a target="$class" href="/$class" title="|                          = qq|<tr><td>$icon</td><td><a target="$class" href="/$class" title="|
57                          . $self->class_path( $class )                          . $self->class_path( $class )
58                          . qq|">$class</a></td><td>|                          . qq|">$class</a>
59                            <a target="Frey::Class::Graph" title="show class graph" href="/Frey::Class::Graph/as_markup?filter=$class&filter_class=1&filter_extends=0&filter_includes=0&filter_roles=0&show_extends=1&show_includes=1&show_roles=1&layout=dot" class="graph">&#x260D;</a>
60                            </td><td>|
61                          ;                          ;
62                  if ( $class->can('meta') ) {                  if ( $class->can('meta') ) {
63                          if ( $class->meta->isa('Moose::Meta::Role') ) {                          if ( $class->meta->isa('Moose::Meta::Role') ) {
# Line 64  sub as_markup { Line 68  sub as_markup {
68                  }                  }
69    
70                  my @runnable = ();                  my @runnable = ();
71                  @{ $runnable->{ $class } } if defined $runnable->{ $class };                  @runnable = @{ $runnable->{ $class } } if defined $runnable->{ $class }; # FIXME needs review
72                  @runnable = $self->class_runnable( $class ) unless @runnable;                  @runnable = $self->class_runnable( $class ) unless @runnable;
73    
74                  my @run = map {                  my @run = map {
# Line 98  sub as_markup { Line 102  sub as_markup {
102    
103          $self->title('Frey');          $self->title('Frey');
104    
105            $self->add_css(qq|
106                    a.graph {
107                            color: #888;
108                            text-decoration: none;
109                    }
110            |);
111    
112          return          return
113                  qq|<table>| . join("\n",                  qq|<table>| . join("\n",
114                          map {                          map {

Legend:
Removed from v.854  
changed lines
  Added in v.1100

  ViewVC Help
Powered by ViewVC 1.1.26