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

Version Path
vanity-2.0.0.beta9 doc/site.js
vanity-1.9.3 doc/site.js
vanity-1.9.2 doc/site.js
vanity-2.0.0.beta8 doc/site.js
vanity-1.8.4 doc/site.js
vanity-2.0.0.beta7 doc/site.js
vanity-2.0.0.beta6 doc/site.js
vanity-2.0.0.beta5 doc/site.js
vanity-2.0.0.beta4 doc/site.js
vanity-2.0.0.beta3 doc/site.js
vanity-2.0.0.beta2 doc/site.js
vanity-2.0.0.beta doc/site.js
vanity-1.9.1 doc/site.js
vanity-1.9.0 doc/site.js
vanity-1.9.0.beta doc/site.js
vanity-1.8.3 doc/site.js
vanity-1.8.3.beta2 doc/site.js
vanity-1.8.3.beta doc/site.js
vanity-1.8.2 doc/site.js
vanity-1.8.1 doc/site.js