Skip to content

Commit 4c7cf06

Browse files
authored
Add a link to the docker tag on the footer (#3230)
2 parents cee2c1e + a495fe5 commit 4c7cf06

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

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)