Fix wording for 0 items

Should say "0 forks" instead of "0 fork".
This commit is contained in:
Andrew Radev
2012-11-14 12:48:10 +01:00
parent c26a474616
commit f33e3ac023
+2 -2
View File
@@ -320,8 +320,8 @@ var run = function() {
username: username,
watchers: repo.info.watchers,
forks: repo.info.forks,
watchersLabel: repo.info.watchers > 1 ? 'watchers' : 'watcher',
forksLabel: repo.info.forks > 1 ? 'forks' : 'fork',
watchersLabel: repo.info.watchers == 0 || repo.info.watchers > 1 ? 'watchers' : 'watcher',
forksLabel: repo.info.forks == 0 || repo.info.forks > 1 ? 'forks' : 'fork',
};
if (itemCount == sorted.length - 1 || itemCount == maxItems - 1) {