show service update and up to date

This commit is contained in:
2024-09-17 14:54:54 +02:00
parent 5862b08ad7
commit b6ab5dda0a
2 changed files with 24 additions and 4 deletions

View File

@@ -158,6 +158,28 @@ function show_service($name, $containers) {
echo $str;
}
function show_service_update($name, $update, $uptodate) {
$str = '<div>'.$name."</div>";
$str .= '<div id="'.$name.'" style="padding-left: 20px">';
$update = trim($update);
$arr = explode(" ",$update);
foreach ($arr as $container) {
$str .= $container." - UPDATE AVAILABLE<br>";
}
$str .= '</div>';
$str .= '<div id="'.$name.'" style="padding-left: 20px">';
$uptodate = trim($uptodate);
$arr = explode(" ",$uptodate);
foreach ($arr as $container) {
$str .= $container." - Already up to date<br>";
}
$str .= '</div>';
echo $str;
}
// not in use
function put_install_envs() {