Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #543 from akoeplinger/fix-stats-formatting

Fixed stats formatting on home page when download or package count is 0
  • Loading branch information...
commit 267c31dafbe485a62570075154145760610f9990 2 parents 2723299 + 2b39a65
@Haacked Haacked authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 Website/Controllers/PagesController.cs
View
6 Website/Controllers/PagesController.cs
@@ -34,9 +34,9 @@ public virtual JsonResult Stats()
var stats = statsSvc.GetAggregateStats();
return Json(new
{
- Downloads = stats.Downloads.ToString("#,#"),
- UniquePackages = stats.UniquePackages.ToString("#,#"),
- TotalPackages = stats.TotalPackages.ToString("#,#")
+ Downloads = stats.Downloads.ToString("n0"),
+ UniquePackages = stats.UniquePackages.ToString("n0"),
+ TotalPackages = stats.TotalPackages.ToString("n0")
}, JsonRequestBehavior.AllowGet);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.