option to show long field in search

This commit is contained in:
Jamie Cameron
2011-09-11 21:58:10 -07:00
parent 34c0506eea
commit 52d8f2d7de
3 changed files with 7 additions and 2 deletions

View File

@@ -93,6 +93,10 @@ if ($config{'host_search'}) {
&ui_textbox("webmin", undef, 30) ] ]));
}
# Show full descriptions?
print &ui_table_row($text{'index_long'},
&ui_yesno_radio("long", 0));
print &ui_table_end();
print &ui_form_end([ [ undef, $text{'index_search'} ] ]);

View File

@@ -27,6 +27,7 @@ index_dall=Any change
index_diff=Changes containing
index_stimes=Actions on dates
index_shost=Source Webmin server
index_long=Show full action descriptions?
index_global=<Not in any module>
search_title=Search Results

View File

@@ -141,7 +141,7 @@ if ($in{'csv'}) {
my %minfo = &get_module_info($m);
$minfo = $minfo_cache{$m} = \%minfo;
}
my $desc = &get_action_description($act, 0);
my $desc = &get_action_description($act, $in{'long'});
$desc =~ s/<[^>]+>//g;
@cols = ( $desc,
$minfo->{'desc'},
@@ -189,7 +189,7 @@ elsif (@match) {
}
my @cols;
my $desc = &get_action_description($act, 0);
my $desc = &get_action_description($act, $in{'long'});
my $anno = &get_annotation($act);
push(@cols, "<a href='view.cgi?id=$act->{'id'}".
"&return=".&urlize($in{'return'} || "").