20 |
$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'); |
21 |
} |
} |
22 |
} |
} |
23 |
my @inspect; |
my @run; |
24 |
push @inspect, qq|<a href="/Frey-ObjectBrowser?class=$class">collection</a>| if $class->can('collection_table'); |
my @input; |
25 |
|
push @run, qq|<a href="/Frey-ObjectBrowser?class=$class">collection</a>| if $class->can('collection_table'); |
26 |
|
my @methods = $self->class_methods( $class ); |
27 |
foreach my $try ( Frey::Run->runnable ) { |
foreach my $try ( Frey::Run->runnable ) { |
28 |
push @inspect, qq|<a href="/$class/$try">$try</a>| if $class->can($try); |
next unless $class->can($try); |
29 |
|
if ( grep { /^\Q$try\E$/ } @methods ) { |
30 |
|
push @run, qq|<a href="/$class/$try">$try</a>|; |
31 |
|
} else { |
32 |
|
push @input, $try; |
33 |
|
} |
34 |
} |
} |
35 |
$html .= qq|</td><td>| . join(' ', @inspect) . qq|</td></tr>|; |
$html .= qq|</td><td>| . join(' ', @run) . qq|</td><td>| . |
36 |
|
( @input ? '← ' . join(' ', @input) : '' ) . |
37 |
|
qq|</td></tr>|; |
38 |
} |
} |
39 |
$html = "<table>$html</table>" if $html; |
$html = "<table>$html</table>" if $html; |
40 |
$markup = $html; |
$markup = $html; |