Skip to content

Commit 777b39e

Browse files
SteveWilkesChristy Henriksson
authored andcommitted
Fix latest download count, re: issue #6741 (#6745)
* Displaying download count for latest listed package, or no download count if no packages are listed. * Updating to use Model.DownloadCount for the current package download count * Updating 'latest version' label text
1 parent 5393150 commit 777b39e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/NuGetGallery/Views/Packages/DisplayPackage.cshtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -772,8 +772,8 @@
772772
</li>
773773
<li>
774774
<i class="ms-Icon ms-Icon--Giftbox" aria-hidden="true"></i>
775-
@Model.PackageVersions.First().DownloadCount.ToNuGetNumberString() @(Model.PackageVersions.First().DownloadCount == 1 ? "download" : "downloads")
776-
of latest version
775+
@Model.DownloadCount.ToNuGetNumberString() @(Model.DownloadCount == 1 ? "download" : "downloads")
776+
of current version
777777
</li>
778778
<li>
779779
<i class="ms-Icon ms-Icon--Financial" aria-hidden="true"></i>

0 commit comments

Comments
 (0)