FIX: We add proper labels for watchers and forks

That is, we replace lines such as
  "This repository has 1 watcher(s) and 5 fork(s)"
with
  "This repository has 1 watcher and 5 forks".
This commit is contained in:
Andrew Tulloch
2011-12-14 02:08:47 +08:00
parent bf90337694
commit dea120728a
2 changed files with 4 additions and 2 deletions

View File

@@ -214,7 +214,9 @@ var run = function() {
description: arr[index].info.description,
username: username,
watchers: arr[index].info.watchers,
forks: arr[index].info.forks
forks: arr[index].info.forks,
watchersLabel: arr[index].info.watchers > 1 ? 'watchers' : 'watcher',
forksLabel: arr[index].info.forks > 1 ? 'forks' : 'fork',
};
if (itemCount == sorted.length - 1 || itemCount == maxItems - 1) {