File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 22
33function GithubRepo ( repo ) {
44 this . description = repo . description ;
5- this . forks = repo . forks ;
5+ this . forks = repo . forks_count ;
66 this . name = repo . name ;
77 this . open_issues = repo . open_issues ;
88 this . pushed_at = repo . pushed_at ;
99 this . url = repo . url ;
10- this . watchers = repo . watchers ;
10+ this . stargazers = repo . stargazers_count ;
1111}
1212
1313// Parses HTML template
@@ -22,7 +22,7 @@ GithubRepo.prototype.toHTML = function () {
2222 "<a href='" + this . url + "'>" + this . name + "</a>" +
2323 "</h3>" +
2424 "<div class='github-stats'>" +
25- "<a class='repo-stars' title='Stars' data-icon='7' href='" + this . url + "/watchers '>" + this . watchers + "</a>" +
25+ "<a class='repo-stars' title='Stars' data-icon='7' href='" + this . url + "/stargazers '>" + this . stargazers + "</a>" +
2626 "<a class='repo-forks' title='Forks' data-icon='f' href='" + this . url + "/network'>" + this . forks + "</a>" +
2727 "<a class='repo-issues' title='Issues' data-icon='i' href='" + this . url + "/issues'>" + this . open_issues + "</a>" +
2828 "</div>" +
You can’t perform that action at this time.
0 commit comments