mirror of
https://github.com/pi-hole/web.git
synced 2025-12-20 02:38:28 +00:00
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:
@@ -557,9 +557,22 @@ function updateVersionInfo() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (v.name === "Docker Tag" && versionCompare(v.local, v.remote) === -1) {
|
if (v.name === "Docker Tag") {
|
||||||
|
if (versionCompare(v.local, v.remote) === -1) {
|
||||||
|
// Display update information for the docker tag
|
||||||
updateComponentAvailable = true;
|
updateComponentAvailable = true;
|
||||||
dockerUpdate = 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
|
// Display update information of individual components only if we are not running in a Docker container
|
||||||
|
|||||||
Reference in New Issue
Block a user