Skip to content

Commit

Permalink
Add a link to the docker tag on the footer (#3230)
Browse files Browse the repository at this point in the history
  • Loading branch information
PromoFaux authored Feb 20, 2025
2 parents cee2c1e + a495fe5 commit 4c7cf06
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions scripts/js/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4c7cf06

Please sign in to comment.