Skip to content

Commit

Permalink
Add a link to the docker tag on the footer if the tag is up-to-date.
Browse files Browse the repository at this point in the history
Else, show the normal "Update available" link

Signed-off-by: RD WebDesign <[email protected]>
  • Loading branch information
rdwebdesign committed Feb 19, 2025
1 parent cee2c1e commit 8f72215
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 8f72215

Please sign in to comment.