Use contributor's html_url as href for their anchor tag

GitHub has added html_url to the user object throughout their
API responses, per my support request, so we can now make use of it
in this page.
This commit is contained in:
Nate Eagleson
2013-02-17 16:13:07 -05:00
parent 607f450d9d
commit a00e3236f7

View File

@@ -6,7 +6,7 @@ $(function(){
var items = [];
$.each(data.data, function(key, val) {
items.push('<li><a href="https://github.com/' + val.login + '" rel="avatarover" data-placement="top" data-title="' + val.login + '" data-content="' + val.login + ' has made ' + val.contributions + ' contributions to GitList"><img src="' + val.avatar_url + '" width="32" height="32" /></a></li>');
items.push('<li><a href="' + val.html_url + '" rel="avatarover" data-placement="top" data-title="' + val.login + '" data-content="' + val.login + ' has made ' + val.contributions + ' contributions to GitList"><img src="' + val.avatar_url + '" width="32" height="32" /></a></li>');
});
$('<ul/>', {