Skip to content

Commit

Permalink
Default to latest stable semver2 on package details page (#3930)
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierdecoster committed May 12, 2017
1 parent 75711c3 commit 1d58879
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/NuGetGallery/Views/Packages/DisplayPackage.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@
<p>
<code>
Install-Package @Model.Id
@if (!Model.LatestVersion || !Model.Listed)
@if (!Model.LatestVersionSemVer2 || !Model.Listed)
{
<text> -Version @Model.Version</text>
}
Expand Down Expand Up @@ -354,8 +354,8 @@
<tbody>
@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())))
{
<tr class="versionTableRow @rowClass">
Expand All @@ -365,7 +365,7 @@
<a title="@packageVersion.Title @packageVersion.FullVersion" href="@Url.Package(packageVersion) ">
@packageVersion.Title.Abbreviate(20)
@packageVersion.Version
@if (packageVersion.LatestStableVersion)
@if (packageVersion.LatestStableVersionSemVer2)
{
@:(latest stable)
}
Expand Down

0 comments on commit 1d58879

Please sign in to comment.