Skip to content

Commit

Permalink
added watchers, created at and pushed at to repo info
Browse files Browse the repository at this point in the history
  • Loading branch information
Lynn Wallenstein committed Sep 12, 2010
1 parent f503f9f commit 6dc4448
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions jquery.github_badge.css
Expand Up @@ -95,6 +95,7 @@ http://creativecommons.org/licenses/by-nc/3.0/
}
.ghb_badge .ghb_badge_user_info dd {
margin: 1px 15px 1px 0px;
wrap: nowrap;
}
.ghb_badge .ghb_repo_list {
clear: both;
Expand Down Expand Up @@ -266,6 +267,9 @@ http://creativecommons.org/licenses/by-nc/3.0/
margin: 10px auto;
padding: 0 10px;
}
.ghb_badge .ghb_repo_info p {
margin-bottom: 10px;
}
.ghb_badge .ghb_repo_info dl {
font-size: 12px;
font-weight: bold;
Expand All @@ -278,5 +282,6 @@ http://creativecommons.org/licenses/by-nc/3.0/
}
.ghb_badge .ghb_repo_info dd {
margin: 1px 15px 1px 0px;
wrap: nowrap;
}

2 changes: 1 addition & 1 deletion jquery.github_badge.js
Expand Up @@ -102,7 +102,7 @@ http://creativecommons.org/licenses/by-nc/3.0/
$("#ghb_user_header_" + options.repo_name).prepend('<a target="_blank" href="http://www.github.com"><img src="'+ options.image_path +'ghb_logo.png" alt="GitHub"></a>');
}

$("#ghb_repo_info_" + options.repo_name).html('<p>' + data.repository.description + '</p><dl class="repo_info_list"><dt>URL:</dt><dd><a target="_blank" href="' + data.repository.url + '">' + data.repository.url +'</a></dd></dl>');
$("#ghb_repo_info_" + options.repo_name).html('<p>' + data.repository.description + '</p><p><a target="_blank" href="' + data.repository.url + '">' + data.repository.url +'</a></p><dl class="repo_info_list"></dd><dt>Watchers:</dt><dd>' + data.repository.watchers + '</dd><dt>Created:</dt><dd>' + data.repository.created_at + '</dd><dt>Last Updated:</dt><dd>' + data.repository.pushed_at + '</dd></dl>');
$("#ghb_repo_goto_issues_" + options.repo_name).html('<a href="' + data.repository.url + '/issues">View All Issues');
$("#ghb_repo_goto_commits_" + options.repo_name).html('<a href="' + data.repository.url + '/commits/' + options.repo_branch +'">View All Commits');
$("#ghb_repo_goto_issues_" + options.repo_name).hide();
Expand Down

0 comments on commit 6dc4448

Please sign in to comment.