Skip to content

Commit 20b1378

Browse files
committed
Code52#49 Added link to project on previous projects page (projects.html)
1 parent d64db1e commit 20b1378

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

js/contrib.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function getContribs(projectName) {
1+
function getContribs(projectName, projectUrl) {
22
$.ajax({
33
url: "http://github.com/api/v2/json/repos/show/Code52/" + projectName + "/contributors",
44
dataType: 'jsonp',
@@ -10,7 +10,7 @@
1010
if (a.contributions < b.contributions) return 1;
1111
return 0;
1212
});
13-
$("#contributors").append("<h2>" + projectName +"</h2>");
13+
$("#contributors").append("<h2><a href=\"" + projectUrl + "\">"+ projectName +"</a></h2>");
1414
$("#contributorTemplate").tmpl(data).appendTo("#contributors");
1515
}
1616
});
@@ -39,7 +39,7 @@
3939
var repo = data.repositories[i];
4040

4141
if (repo.name != "code52.github.com")
42-
getContribs(repo.name);
42+
getContribs(repo.name, repo.url);
4343
}
4444
}
4545
});

0 commit comments

Comments
 (0)