mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 06:03:28 +00:00
Add EOL message to the dashboard
This commit is contained in:
@@ -49,13 +49,16 @@ if (&show_section('host')) {
|
||||
push(@table, { 'desc' => $text{'right_host'},
|
||||
'value' => &get_system_hostname().$ip });
|
||||
|
||||
# Operating system
|
||||
# Operating system and EOL
|
||||
&foreign_require("webmin");
|
||||
&webmin::eol_update_cache();
|
||||
my $eol = $gconfig{'os_eol_expired'} || $gconfig{'os_eol_expiring'};
|
||||
my $os = &html_escape($gconfig{'os_version'} eq '*' ?
|
||||
$gconfig{'real_os_type'} :
|
||||
$gconfig{'real_os_type'}.' '.
|
||||
$gconfig{'real_os_version'});
|
||||
push(@table, { 'desc' => $text{'right_os'},
|
||||
'value' => $os
|
||||
'value' => $os . ($eol ? " ($eol)" : "")
|
||||
});
|
||||
|
||||
# Webmin version
|
||||
|
||||
Reference in New Issue
Block a user