mirror of
https://github.com/correl/melpa.git
synced 2024-11-14 19:19:32 +00:00
Format download and package counts with toLocaleString()
This commit is contained in:
parent
671afe0ff3
commit
8b6c18f5e4
1 changed files with 4 additions and 4 deletions
|
@ -209,10 +209,10 @@
|
|||
return m("section#packages", [
|
||||
m("h2", [
|
||||
"Current List of ",
|
||||
ctrl.packageList().totalPackages(),
|
||||
ctrl.packageList().totalPackages().toLocaleString(),
|
||||
" Packages ",
|
||||
m("small", [
|
||||
ctrl.packageList().totalDownloads(),
|
||||
ctrl.packageList().totalDownloads().toLocaleString(),
|
||||
" downloads to date"
|
||||
])
|
||||
]),
|
||||
|
@ -247,7 +247,7 @@
|
|||
m("td.source", [
|
||||
p.sourceURL ? m("a", {href: p.sourceURL}, [p.source]) : p.source
|
||||
]),
|
||||
m("td", [p.downloads])
|
||||
m("td", [p.downloads.toLocaleString()])
|
||||
]);
|
||||
}))
|
||||
])
|
||||
|
@ -309,7 +309,7 @@
|
|||
m("dl.dl-horizontal", [
|
||||
m("dt", "Downloads"),
|
||||
m("dd", [
|
||||
pkg.downloads,
|
||||
pkg.downloads.toLocaleString(),
|
||||
m("span.muted", " (all versions)"),
|
||||
", percentile: ",
|
||||
ctrl.downloadsPercentile().toFixed(2)
|
||||
|
|
Loading…
Reference in a new issue