mirror of
https://github.com/webmin/webmin.git
synced 2026-05-04 22:30:33 +01:00
option to show long field in search
This commit is contained in:
@@ -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'} ] ]);
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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'} || "").
|
||||
|
||||
Reference in New Issue
Block a user