From 9933affbbfb9362419bcc23c477b47530fc1ffa6 Mon Sep 17 00:00:00 2001 From: Christoph Hummer Date: Mon, 28 Oct 2024 22:07:33 +0100 Subject: [PATCH] Move TS icon to Network - Move Tailscale information from `Version` to `Network` column --- .../include/DockerContainers.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/emhttp/plugins/dynamix.docker.manager/include/DockerContainers.php b/emhttp/plugins/dynamix.docker.manager/include/DockerContainers.php index 72fbb73e5..764691a48 100644 --- a/emhttp/plugins/dynamix.docker.manager/include/DockerContainers.php +++ b/emhttp/plugins/dynamix.docker.manager/include/DockerContainers.php @@ -204,7 +204,7 @@ foreach ($containers as $ct) { case 1: echo "
"._('update ready')."
"; if ($ct['Manager'] == "dockerman") { - echo " "._('apply update').""; + echo " "._('apply update').""; } elseif (!empty($composestack)) { echo "
Compose
"; echo " "._('update available').""; @@ -231,6 +231,7 @@ foreach ($containers as $ct) { break; } // Check if Tailscale for container is enabled by checking if TShostname is set + $TS_status = ''; if (!empty($TShostname)) { if ($running) { // Get stats from container and check if they are not empty @@ -309,18 +310,18 @@ foreach ($containers as $ct) { } } // Display TSinfo if data was fetched correctly - echo "
Tailscale
"; + $TS_status = "
Tailscale
"; } else { // Display message to refresh page if Tailscale in the container wasn't maybe ready to get the data - echo "
Tailscale
"; + $TS_status = "
Tailscale
"; } } else { // Display message that container isn't running - echo "
Tailscale
"; + $TS_status = "
Tailscale
"; } } echo "
".compress(_($version),12,0)."
"; - echo " ".implode('
',$networks)."
"; + echo " ".implode('
',$networks).$TS_status."
"; echo " ".implode('
',$network_ips)."
"; echo "".implode('
',$ports_internal)."
"; echo "".implode('
',$ports_external)."
";