diff --git a/websiteFunctions/templates/websiteFunctions/DockerSiteHome.html b/websiteFunctions/templates/websiteFunctions/DockerSiteHome.html
index e3e34ac59..187b63318 100644
--- a/websiteFunctions/templates/websiteFunctions/DockerSiteHome.html
+++ b/websiteFunctions/templates/websiteFunctions/DockerSiteHome.html
@@ -941,6 +941,30 @@
$scope.conatinerview = false;
$scope.cyberpanelLoading = true;
+ // Function to extract n8n version from environment variables
+ $scope.getN8nVersion = function(container) {
+ if (container.environment) {
+ for (var i = 0; i < container.environment.length; i++) {
+ var env = container.environment[i];
+ if (env.startsWith('N8N_VERSION=')) {
+ return env.split('=')[1];
+ }
+ }
+ }
+ // If no version found in environment, try to extract from image tag
+ if (container.image && container.image.includes(':')) {
+ return container.image.split(':')[1];
+ }
+ return 'unknown';
+ };
+
+ // Function to check if updates are available
+ $scope.checkN8nUpdates = function(currentVersion) {
+ // This is a placeholder. You'll need to implement the actual version check
+ // For now, we'll assume an update is available if version is not 'latest'
+ return currentVersion !== 'latest';
+ };
+
// Add custom icon rendering for container actions
$scope.renderIcon = function(iconName) {
return '';
@@ -1169,8 +1193,8 @@
n8n Container: {$ web.name $}
- v{$ web.version $}
-
+ v{$ getN8nVersion(web) $}
+
Update Available
@@ -1192,7 +1216,7 @@
-