';
if ($info->{'id'} ne 'plugin_virtualmin-notes' && $info->{'id'} ne 'acl_logins') {
$returned_sysinfo .= '
';
}
if ($info->{'type'} ne 'html') {
$returned_sysinfo .= '
';
}
my $status_icons_tpl = {
_fa => 'fa fa-fw fa',
_fa2 => 'fa2 fa-fw fa2',
_fa115x => 'fa-1_15x',
_falg => 'fa-lg',
_text_succ => 'text-success',
_text_warn => 'text-warning text-warning-brighter',
_text_dang => 'text-danger',
_vert_algn_md => 'vertical-align-middle',
};
my $status_icons = {
up => "{'_fa'}-check $status_icons_tpl->{'_falg'} $status_icons_tpl->{'_text_succ'}\">",
stop => "{'_fa'}-times-circle $status_icons_tpl->{'_falg'} $status_icons_tpl->{'_text_warn'}\">",
down => "{'_fa'}-minus-circle $status_icons_tpl->{'_falg'} $status_icons_tpl->{'_text_dang'}\">",
start => "{'_fa'}-play text-success $status_icons_tpl->{'_falg'}\">",
reload => "{'_fa'}-refresh text-info $status_icons_tpl->{'_falg'}\">",
quest => "{'_fa'}-question-circle $status_icons_tpl->{'_fa115x'}\">",
not => "{'_fa2'}-not-interested $status_icons_tpl->{'_fa115x'}\">",
skip => "{'_fa2'}-minus $status_icons_tpl->{'_fa115x'} $status_icons_tpl->{'_vert_algn_md'}\">",
timed => "{'_fa'}-clock $status_icons_tpl->{'_fa115x'} $status_icons_tpl->{'_vert_algn_md'} $status_icons_tpl->{'_text_warn'}\">",
webmin => "{'_fa'}-webmin $status_icons_tpl->{'_fa115x'} $status_icons_tpl->{'_vert_algn_md'} $status_icons_tpl->{'_text_warn'}\">",
};
if ($info->{'id'} eq 'status_services') {
$info->{"html"} =~ s/
/$status_icons->{$1}/g;
}
if ($info->{'type'} eq 'table' &&
( $info->{'module'} ne 'system-status' &&
$info->{'type'} ne 'link'
))
{
foreach my $t (@{ $info->{'table'} }) {
$t->{"desc"} =~ s/^\ //g;
$t->{"desc"} =~ s/
/$status_icons->{$1}/g;
$t->{"value"} =~ s/
/$status_icons->{$1}/g;
$returned_sysinfo .= '
| ' . $t->{"desc"} . ' |
' . $t->{"value"} . ' |
';
}
} elsif ($info->{'type'} eq 'chart') {
$returned_sysinfo .= print_charts($info, $x);
} elsif ($info->{'type'} eq 'html') {
$info->{'html'} =~ s/