[! use strict; use PVE::I18N; use PVE::Config; use PVE::HTMLTable; use PVE::HTMLControls; use PVE::Utils; !] [- use strict; my $cinfo = $fdat{__cinfo}; if ($cinfo->{local}->{role} eq 'N') { print OUT PVE::HTMLUtils::msg('infoatmaster'); return; } my $cid = $fdat{cid}; my $veid = $fdat{veid}; my $out = ''; if (defined ($cid) && $veid) { $out .= PVE::HTMLUtils::create_vmops_frame ($veid); } else { $out .= PVE::HTMLUtils::create_statusframe ('vmops', __('Running Maintainance Tasks')); $out .= PVE::HTMLControls::create_wsviewer ("vmops", undef, '/ws/vmops', {} , 5); $out .= "
"; $out .= PVE::HTMLUtils::create_statusframe ('oldvmops', __('Finished Maintainance Tasks')); $out .= PVE::HTMLControls::create_wsviewer ("oldvmops", undef, '/ws/vmops', { inactive => 1} , 5); } print OUT $out; -]