Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Lidarr/commit/877a851fe9228447e67dca5ba4593e8a19eb2886?style=unified&whitespace=ignore-eol
You should set ROOT_URL correctly, otherwise the web may not work correctly.
3 changed files with
20 additions and
15 deletions
@ -22,17 +22,19 @@ namespace NzbDrone.Api.Update
. OrderByDescending ( u = > u . Version )
. InjectTo < List < UpdateResource > > ( ) ;
foreach ( var updateResource in resources )
var first = resources . First ( ) ;
first . Latest = true ;
if ( first . Version > BuildInfo . Version )
{
first . Installable = true ;
}
var installed = resources . SingleOrDefault ( r = > r . Version = = BuildInfo . Version ) ;
if ( installed ! = null )
{
if ( updateResource . Version > BuildInfo . Version )
{
updateResource . IsUpgrade = true ;
}
else if ( updateResource . Version = = BuildInfo . Version )
{
updateResource . Installed = true ;
}
installed . Installed = true ;
}
return resources ;
@ -14,8 +14,9 @@ namespace NzbDrone.Api.Update
public DateTime ReleaseDate { get ; set ; }
public String FileName { get ; set ; }
public String Url { get ; set ; }
public Boolean IsUpgrade { get ; set ; }
public Boolean Installed { get ; set ; }
public Boolean Installable { get ; set ; }
public Boolean Latest { get ; set ; }
public UpdateChanges Changes { get ; set ; }
public String Hash { get ; set ; }
}
@ -8,10 +8,12 @@
{{ # if in stalled }}
<span class="label label-success">Installed</span>
{{ else }}
{{ # if isUpgrade }}
<span class="label label-default install-update x-install-update">Install</span>
{{ else }}
<span class="label label-default label-disabled" title="Cannot install an older version">Install</span>
{{ # if latest }}
{{ # if in stallable }}
<span class="label label-default install-update x-install-update">Install</span>
{{ else }}
<span class="label label-default label-disabled" title="Cannot install an older version">Install</span>
{{ / if }}
{{ / if }}
{{ / if }}
</span>