Skip to content

Commit 8f72215

Browse files
committed
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 <[email protected]>
1 parent cee2c1e commit 8f72215

1 file changed

Lines changed: 16 additions & 3 deletions

File tree

scripts/js/footer.js

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -557,9 +557,22 @@ function updateVersionInfo() {
557557
}
558558
}
559559

560-
if (v.name === "Docker Tag" && versionCompare(v.local, v.remote) === -1) {
561-
updateComponentAvailable = true;
562-
dockerUpdate = true;
560+
if (v.name === "Docker Tag") {
561+
if (versionCompare(v.local, v.remote) === -1) {
562+
// Display update information for the docker tag
563+
updateComponentAvailable = true;
564+
dockerUpdate = true;
565+
} else {
566+
// Display the link for the current tag
567+
localVersion =
568+
'<a href="' +
569+
v.url +
570+
"/" +
571+
localVersion +
572+
'" rel="noopener" target="_blank">' +
573+
localVersion +
574+
"</a>";
575+
}
563576
}
564577

565578
// Display update information of individual components only if we are not running in a Docker container

0 commit comments

Comments
 (0)