mirror of
https://github.com/klaussilveira/gitlist.git
synced 2026-07-28 15:58:56 +02:00
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:
@@ -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/>', {
|
||||
|
||||
Reference in New Issue
Block a user