Add ability to add links to warnings

This commit is contained in:
Ilia Rostovtsev
2018-11-14 14:07:12 +03:00
committed by GitHub
parent 0eda97bb18
commit 6ea905bfe6

View File

@@ -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') {