mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 06:03:28 +00:00
Merge branch 'master' of github.com:webmin/webmin
This commit is contained in:
@@ -20,12 +20,10 @@ print &ui_tabs_start([ [ 'pkgs', $text{'index_tabpkgs'} ],
|
||||
# See if any security updates exist
|
||||
$in{'mode'} ||= 'updates';
|
||||
@avail = &list_for_mode($in{'mode'}, 0);
|
||||
($sec) = grep { $_->{'security'} } @avail;
|
||||
|
||||
# Show mode selector (all, updates only, updates and new)
|
||||
@grid = ( );
|
||||
foreach $m ('current', 'updates', 'new',
|
||||
$sec || $in{'mode'} eq 'security' ? ( 'security' ) : ( )) {
|
||||
foreach $m ('current', 'updates', 'security', 'new') {
|
||||
$mmsg = $text{'index_mode_'.$m};
|
||||
if ($in{'mode'} eq $m) {
|
||||
push(@mlinks, "<b>$mmsg</b>");
|
||||
|
||||
Reference in New Issue
Block a user