Made link in "Languages" section point to search page of user's repo

using this language

(Improved by @Walkman100 and @u2).
This commit is contained in:
Julien Sagot
2014-01-20 20:09:59 +01:00
committed by Baptiste Fontaine
parent 0ad014760c
commit 457fb21e8e

View File

@@ -204,9 +204,9 @@ var run = function() {
var FIFTH_STEP = 150;
var EXTRA_POINT_GAIN = 1;
var statusScore = data.public_repos * COEF_REPOS
+ data.public_gists * COEF_GISTS
+ data.followers * COEF_FOLLOWERS
var statusScore = data.public_repos * COEF_REPOS
+ data.public_gists * COEF_GISTS
+ data.followers * COEF_FOLLOWERS
+ data.following * COEF_FOLLOWING;
// Extra points
@@ -300,7 +300,9 @@ var run = function() {
name: lang,
popularity: languages[lang],
toString: function() {
return '<a href="https://github.com/trending?l=' + this.name + '">' + this.name + '</a>';
return '<a href="https://github.com/search?q=user%3A'
+ username + '&l=' + this.name + '">'
+ this.name + '</a>';
}
});