Skip to content

Commit

Permalink
made user detail info into links
Browse files Browse the repository at this point in the history
  • Loading branch information
Lynn Wallenstein committed Sep 11, 2010
1 parent 5533513 commit bf71396
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions jquery.github_badge.css
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,16 @@ http://creativecommons.org/licenses/by-nc/3.0/
}
.ghb_badge .ghb_badge_user_info dl {
font-size: 12px;
font-weight: normal;
font-weight: bold;
margin-top: 10px;
}
.ghb_badge .ghb_badge_user_info dt {
float: left;
font-weight: bold;
margin-right: 15px;
margin: 1px 15px 1px 0px;
}
.ghb_badge .ghb_badge_user_info dd {
float: left;
margin: 1px 15px 1px 0px;
}
.ghb_badge .ghb_repo_list {
clear: both;
Expand Down
2 changes: 1 addition & 1 deletion jquery.github_badge.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ http://creativecommons.org/licenses/by-nc/3.0/
$.getJSON(requestURLUserInfo, function(data){
// console.log(data);
$("#ghb_user_header_" + options.login).html('<h1><a target="_blank" href="http://www.github.com/'+ options.login +'">'+ options.login +'\'s '+ options.userBadgeTitle +'</a> ('+ data.user.public_repo_count +')</h1>');
$("#ghb_user_info_" + options.login).html('<img src="http://www.gravatar.com/avatar/'+ data.user.gravatar_id +'">' + data.user.name +'<dl><dt># of Public Repos</dt><dd>' + data.user.public_repo_count +'</dd><dt># of Followers</dt><dd>' + data.user.followers_count +'</dd><dt># Following</dt><dd>' + data.user.following_count +'</dd><dt># of Public Gists</dt><dd>' + data.user.public_gist_count +'</dd></d>');
$("#ghb_user_info_" + options.login).html('<img src="http://www.gravatar.com/avatar/'+ data.user.gravatar_id +'">' + data.user.name +'<dl><dt>Public Repos:</dt><dd><a target="_blank" href="http://github.com/' + options.login + '/repositories">' + data.user.public_repo_count +'</a></dd><dt>Followers:</dt><dd><a target="_blank" href="http://github.com/' + options.login + '/followers">' + data.user.followers_count +'</a></dd><dt>Following:</dt><dd><a target="_blank" href="http://github.com/' + options.login + '/following">' + data.user.following_count +'</a></dd><dt>Public Gists:</dt><dd><a target="_blank" href="http://gist.github.com/' + options.login + '">' + data.user.public_gist_count +'</a></dd></d>');
});

var requestURLRepos = "http://github.com/api/v2/json/repos/show/" + options.login + "?callback=?";
Expand Down

0 comments on commit bf71396

Please sign in to comment.