Skip to content

Commit

Permalink
sync: master to devel (#2322)
Browse files Browse the repository at this point in the history
  • Loading branch information
PromoFaux authored Sep 2, 2022
2 parents eff52d6 + 5370780 commit 2c5fb03
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/pi-hole/php/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@
<div class="row row-centered text-center version-info">
<div class="col-xs-12 col-sm-12 col-md-10">
<ul class="<?php echo $list_class; ?>">
<?php if ($docker_current) { ?>
<?php if ($dockerVersionStr) { ?>
<li>
<strong>Docker Tag</strong>
<?php echo $docker_current; ?>
<?php echo $dockerVersionStr; ?>
<?php if ($docker_update) { ?> &middot; <a class="lookatme" lookatme-text="Update available!" href="<?php echo $dockerUrl.'/latest'; ?>" rel="noopener" target="_blank">Update available!</a><?php } ?>
</li>
<?php } ?>
Expand Down
4 changes: 3 additions & 1 deletion scripts/pi-hole/php/update_checker.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ function checkUpdate($currentVersion, $latestVersion)
$docker_update = false;
} else {
$docker_update = checkUpdate($docker_current, $docker_latest);

$dockerUrl = 'https://github.com/pi-hole/docker-pi-hole/releases';
$dockerVersionStr = '<a href="'.$dockerUrl.'/'.$docker_current.'" rel="noopener" target="_blank">'.$docker_current.'</a>';
}
} else {
// Components comparison
Expand All @@ -99,7 +102,6 @@ function checkUpdate($currentVersion, $latestVersion)
$coreUrl = 'https://github.com/pi-hole/pi-hole/releases';
$webUrl = 'https://github.com/pi-hole/AdminLTE/releases';
$ftlUrl = 'https://github.com/pi-hole/FTL/releases';
$dockerUrl = 'https://github.com/pi-hole/docker-pi-hole/releases';

// Version strings
// If "vDev" show branch/commit, else show link
Expand Down

0 comments on commit 2c5fb03

Please sign in to comment.