Skip to content

Commit

Permalink
Fix changelog link not showing on about page.
Browse files Browse the repository at this point in the history
(cherry picked from commit 0b7bf04)
  • Loading branch information
cpinkham committed Jan 3, 2021
1 parent 4126f52 commit 839c605
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions www/about.php
Expand Up @@ -111,8 +111,18 @@ function UpdateVersionInfo() {
$('#fppVersion').html(data.advancedView.Version);
$('#osVersion').html(data.advancedView.OSVersion);
$('#osRelease').html(data.advancedView.OSRelease);
$('#localGitVersion').html(data.advancedView.LocalGitVersion);
$('#remoteGitVersion').html(data.advancedView.RemoteGitVersion);

var localVer = data.advancedView.LocalGitVersion + " <a href='changelog.php'>ChangeLog</a>";
var remoteVer = data.advancedView.RemoteGitVersion;
if ((data.advancedView.RemoteGitVersion != "") &&
(data.advancedView.RemoteGitVersion != "Unknown") &&
(data.advancedView.RemoteGitVersion != data.advancedView.LocalGitVersion)) {
localVer += " <font color='#FF0000'>(Update is available)</font>";
remoteVer += " <font color='#FF0000'><a href='javascript:void(0);' onClick='GetGitOriginLog();'>Preview Changes</a></font>";
}

$('#localGitVersion').html(localVer);
$('#remoteGitVersion').html(remoteVer);
});
}

Expand Down Expand Up @@ -253,11 +263,11 @@ function UpgradeFirmware() {
<tr><td>Local Git Version:</td><td id='localGitVersion'>
<?
echo $git_version;
echo " <a href='changelog.php'>ChangeLog</a>";
if (($git_remote_version != "") &&
($git_remote_version != "Unknown") &&
($git_version != $git_remote_version))
echo " <font color='#FF0000'>(Update is available)</font>";
echo " <a href='changelog.php'>ChangeLog</a>";
?>
</td></tr>
<tr><td>Remote Git Version:</td><td id='remoteGitVersion'>
Expand Down

0 comments on commit 839c605

Please sign in to comment.