diff --git a/websiteFunctions/templates/websiteFunctions/DockerSiteHome.html b/websiteFunctions/templates/websiteFunctions/DockerSiteHome.html index 58fb26e0d..4a64ef5ea 100644 --- a/websiteFunctions/templates/websiteFunctions/DockerSiteHome.html +++ b/websiteFunctions/templates/websiteFunctions/DockerSiteHome.html @@ -948,6 +948,28 @@ } }; } + + // Add n8n version checking function + $rootScope.checkN8nVersion = function(container) { + // Simulate version check + container.n8nVersion = { + current: '1.0.0', + latest: '1.1.0', + updateAvailable: true + }; + }; + + // Add n8n update function + $rootScope.updateN8n = function(container) { + container.updatingN8n = true; + + // Simulate update process + setTimeout(function() { + container.n8nVersion.current = container.n8nVersion.latest; + container.n8nVersion.updateAvailable = false; + container.updatingN8n = false; + }, 3000); + }; }]); }); @@ -1143,10 +1165,57 @@ Open n8n +
+ +
+

+ n8n Version Information + +

+
+
+ + + + + + + + + + + + + + + +
Current Version:{$ web.n8nVersion.current $}
Latest Version:{$ web.n8nVersion.latest $}
Update Available: + + {$ web.n8nVersion.updateAvailable ? 'Yes' : 'No' $} + +
+
+
+
+ + Your n8n installation is up to date. + + A new version of n8n is available. Click the update button to upgrade to version {$ web.n8nVersion.latest $}. + +
+
+
+