diff --git a/src/NuGetGallery/Views/Packages/DisplayPackage.cshtml b/src/NuGetGallery/Views/Packages/DisplayPackage.cshtml index 1a6280e6fd..312128cb3e 100644 --- a/src/NuGetGallery/Views/Packages/DisplayPackage.cshtml +++ b/src/NuGetGallery/Views/Packages/DisplayPackage.cshtml @@ -264,7 +264,7 @@

Install-Package @Model.Id - @if (!Model.LatestVersion || !Model.Listed) + @if (!Model.LatestVersionSemVer2 || !Model.Listed) { -Version @Model.Version } @@ -354,8 +354,8 @@ @foreach (var packageVersion in Model.PackageVersions) { - var rowClass = packageVersion.LatestStableVersion ? "recommended" : null; - var cellTitle = packageVersion.LatestStableVersion ? "Latest Stable Version" : null; + var rowClass = packageVersion.LatestStableVersionSemVer2 ? "recommended" : null; + var cellTitle = packageVersion.LatestStableVersionSemVer2 ? "Latest Stable Version" : null; if (!packageVersion.Deleted && (packageVersion.Listed || (Model.IsOwner(User) || User.IsAdministrator()))) { @@ -365,7 +365,7 @@ @packageVersion.Title.Abbreviate(20) @packageVersion.Version - @if (packageVersion.LatestStableVersion) + @if (packageVersion.LatestStableVersionSemVer2) { @:(latest stable) }