2 |
use Moose; |
use Moose; |
3 |
|
|
4 |
extends 'Frey::ClassLoader'; |
extends 'Frey::ClassLoader'; |
5 |
|
with 'Frey::Web'; |
6 |
|
|
7 |
use Frey::Run; |
use Frey::Run; |
8 |
|
|
21 |
$html .= qq|<a href="/Frey-ObjectDesigner?class=$class">design</a>| if $class->can('collection'); |
$html .= qq|<a href="/Frey-ObjectDesigner?class=$class">design</a>| if $class->can('collection'); |
22 |
} |
} |
23 |
} |
} |
24 |
my @inspect; |
my @run; |
25 |
push @inspect, qq|<a href="/Frey-ObjectBrowser?class=$class">collection</a>| if $class->can('collection_table'); |
my @input; |
26 |
|
push @run, qq|<a href="/Frey-ObjectBrowser?class=$class">collection</a>| if $class->can('collection_table'); |
27 |
|
my $class_method = $self->class_methods( $class ); |
28 |
foreach my $try ( Frey::Run->runnable ) { |
foreach my $try ( Frey::Run->runnable ) { |
29 |
push @inspect, qq|<a href="/$class/$try">$try</a>| if $class->can($try); |
next unless $class->can($try); |
30 |
|
if ( $class_method->{ $try } ) { |
31 |
|
push @run, qq|<a href="/$class/$try">$try</a>|; |
32 |
|
} else { |
33 |
|
push @input, $try; |
34 |
|
} |
35 |
} |
} |
36 |
$html .= qq|</td><td>| . join(' ', @inspect) . qq|</td></tr>|; |
$html .= qq|</td><td>| . join(' ', @run) . qq|</td><td>| . |
37 |
|
( @input ? '← ' . join(' ', @input) : '' ) . |
38 |
|
qq|</td></tr>|; |
39 |
} |
} |
40 |
$html = "<table>$html</table>" if $html; |
$html = "<table>$html</table>" if $html; |
41 |
$markup = $html; |
$markup = $html; |