Add a link to the docker tag on the footer if the tag is up-to-date.

Else, show the normal "Update available" link

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
This commit is contained in:
RD WebDesign
2025-02-19 19:33:19 -03:00
parent cee2c1e33a
commit 8f72215630

View File

@@ -557,9 +557,22 @@ function updateVersionInfo() {
}
}
if (v.name === "Docker Tag" && versionCompare(v.local, v.remote) === -1) {
updateComponentAvailable = true;
dockerUpdate = true;
if (v.name === "Docker Tag") {
if (versionCompare(v.local, v.remote) === -1) {
// Display update information for the docker tag
updateComponentAvailable = true;
dockerUpdate = true;
} else {
// Display the link for the current tag
localVersion =
'<a href="' +
v.url +
"/" +
localVersion +
'" rel="noopener" target="_blank">' +
localVersion +
"</a>";
}
}
// Display update information of individual components only if we are not running in a Docker container