We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d64db1e commit 20b1378Copy full SHA for 20b1378
js/contrib.js
@@ -1,4 +1,4 @@
1
- function getContribs(projectName) {
+ function getContribs(projectName, projectUrl) {
2
$.ajax({
3
url: "http://github.com/api/v2/json/repos/show/Code52/" + projectName + "/contributors",
4
dataType: 'jsonp',
@@ -10,7 +10,7 @@
10
if (a.contributions < b.contributions) return 1;
11
return 0;
12
});
13
- $("#contributors").append("<h2>" + projectName +"</h2>");
+ $("#contributors").append("<h2><a href=\"" + projectUrl + "\">"+ projectName +"</a></h2>");
14
$("#contributorTemplate").tmpl(data).appendTo("#contributors");
15
}
16
@@ -39,7 +39,7 @@
39
var repo = data.repositories[i];
40
41
if (repo.name != "code52.github.com")
42
- getContribs(repo.name);
+ getContribs(repo.name, repo.url);
43
44
45
0 commit comments