Merge pull request #33 from ajtulloch/master

Labels for watchers and forks in descriptions.
This commit is contained in:
David Coallier
2012-04-16 02:13:07 -07:00
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) {

View File

@@ -6,7 +6,7 @@
<h4>{{date}}</h4>
<p>{{description}}</p>
<p>
This repository has {{watchers}} watcher(s) and {{forks}} fork(s).
This repository has {{watchers}} {{watchersLabel}} and {{forks}} {{forksLabel}}.
If you would like more information about this repository and my
contributed code, please visit
<a href="https://github.com/{{username}}/{{name}}">the repo</a> on