diff --git a/js/githubresume.js b/js/githubresume.js index 9a2c56e..b7cf3c3 100644 --- a/js/githubresume.js +++ b/js/githubresume.js @@ -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) { diff --git a/views/job.html b/views/job.html index bd40982..a60cd79 100644 --- a/views/job.html +++ b/views/job.html @@ -6,7 +6,7 @@
{{description}}
- 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 the repo on