mirror of
https://github.com/webmin/webmin.git
synced 2026-08-12 10:30:44 +01:00
Add ability to add links to warnings
This commit is contained in:
@@ -102,6 +102,10 @@ foreach my $a (@ann) {
|
||||
$info->{'type'} = 'warning';
|
||||
$info->{'level'} = $a->{'level'} || 'info';
|
||||
$info->{'warning'} = &html_escape($a->{'message'})."<p>\n";
|
||||
for(my $b=0; defined($a->{'link'.$b}); $b++) {
|
||||
$info->{'warning'} .= &ui_link_button(
|
||||
$a->{'link'.$b}, $a->{'desc'.$b}, "_new")."\n";
|
||||
}
|
||||
$info->{'warning'} .= $hide;
|
||||
}
|
||||
elsif ($a->{'type'} eq 'message') {
|
||||
|
||||
Reference in New Issue
Block a user