Skip to content

Commit

Permalink
Overdue watchers->stargazers fix
Browse files Browse the repository at this point in the history
Fixes twitter#50 and by using the stargazers value, also fixed forks.
  • Loading branch information
andypiper authored Jul 22, 2016
1 parent a0ca4ff commit bb64cba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@

$item.append('<span class="bullet">&sdot;</span>');

var $watchers = $("<a>").attr("href", repo.html_url + "/watchers").text(repo.watchers + " stargazers");
var $watchers = $("<a>").attr("href", repo.html_url + "/stargazers").text(repo.stargazers_count + " stargazers");
$item.append($("<span>").addClass("watchers").append($watchers));

$item.append('<span class="bullet">&sdot;</span>');

var $forks = $("<a>").attr("href", repo.html_url + "/network").text(repo.forks + " forks");
var $forks = $("<a>").attr("href", repo.html_url + "/network").text(repo.forks_count + " forks");
$item.append($("<span>").addClass("forks").append($forks));

$item.appendTo("#recently-updated-repos");
Expand Down

0 comments on commit bb64cba

Please sign in to comment.