Sha256: 2a1a07a65a6fc1dc018695223e31bb7ef152beaf8ff8e2b436f1aa580178c20f
Contents?: true
Size: 1 KB
Versions: 26
Compression:
Stored size: 1 KB
Contents
$(function() { var issuesTable = $("table#issues"); if (issuesTable.size() > 0) { $.getJSON("http://github.com/api/v2/json/issues/list/assaf/vanity/open?callback=?", function(response) { $.each(response.issues, function(i, issue) { issuesTable.append( $("<tr>").append( $("<td>").append( $("<a>").text(issue.title).attr("href", "http://github.com/assaf/vanity/issues#issue/" + issue.number) ).append( $("<span class='votes'>").text(issue.votes == 0 ? "no votes" : issue.votes == 1 ? "1 vote" : issue.votes + " votes") ) ) ); }); }); } var statsTable = $("#sidebar ul#stats"); if (statsTable.size() > 0) { $.getJSON("http://github.com/api/v2/json/repos/show/assaf/vanity?callback=?", function(response) { statsTable. prepend( $("<li>").append("Forks: " + response.repository.forks) ). prepend( $("<li>").append("Watchers: " + response.repository.watchers) ) }) } });
Version data entries
26 entries across 26 versions & 4 rubygems