mirror of
https://github.com/resume/resume.github.com.git
synced 2026-02-16 18:39:23 -06:00
Merge pull request #33 from ajtulloch/master
Labels for watchers and forks in descriptions.
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user