15 |
|
|
16 |
my $config_path = $0; |
my $config_path = $0; |
17 |
$config_path =~ s/.cgi/.js/; |
$config_path =~ s/.cgi/.js/; |
18 |
|
|
19 |
|
my $hostname = `hostname -s`; |
20 |
|
chomp($hostname); |
21 |
|
$hostname .= '.js'; |
22 |
|
$config_path = $hostname if -e $hostname; |
23 |
|
|
24 |
my $config = from_json( read_file( $config_path ) ); |
my $config = from_json( read_file( $config_path ) ); |
25 |
my $repository_dir = $config->{repository_dir} || die "no repository_dir in $config_path"; |
my $repository_dir = $config->{repository_dir} || die "no repository_dir in $config_path"; |
26 |
my $svnweb = $config->{svnweb} || die "no svnweb in $config_path"; |
my $svnweb = $config->{svnweb} || die "no svnweb in $config_path"; |
55 |
return ( |
return ( |
56 |
$q->start_form( -name => 'current_repository', -id => 'current_repository', -method => 'post' ), |
$q->start_form( -name => 'current_repository', -id => 'current_repository', -method => 'post' ), |
57 |
"From repository ", |
"From repository ", |
58 |
$q->popup_menu( -name => 'repository', -values => [ @repositories ], -onChange => $onChange ), |
$q->param('did_submit') ? |
59 |
|
$q->popup_menu( -name => 'repository', -values => [ @repositories ], -onChange => $onChange ) : |
60 |
|
$q->radio_group( -name => 'repository', -values => [ @repositories ], -onChange => $onChange ), # , -linebreak => 'true' ), |
61 |
" show ", |
" show ", |
62 |
$q->popup_menu( -name => 'limit', -values => [ qw/100 500 1000 5000 10000/ ], -onChange => $onChange ), |
$q->popup_menu( -name => 'limit', -values => [ qw/100 500 1000 5000 10000/ ], -onChange => $onChange ), |
63 |
" revisions and ", |
" revisions and ", |
64 |
$q->checkbox(-name=>'path', -checked=>1, -value=>'ON', -label=>'path modifications', -onChange => $onChange ), |
$q->checkbox(-name=>'path', -checked=>1, -value=>'ON', -label=>'path modifications', -onChange => $onChange ), |
65 |
" ", |
" ", |
66 |
$q->submit(-name=>'did_submit', -value=>'in Exhibit'), |
$q->submit(-value=>'in Exhibit'), |
67 |
|
$q->hidden(-name=>'did_submit', -value=>1), |
68 |
$q->end_form |
$q->end_form |
69 |
); |
); |
70 |
} |
} |