Slight semantic fix for "I do not have any public repos"

In the "GitHub Profile" section, it will display "$user is a developer with X public repositories. ..."

However, if the user in question only has other people's forks, it will display "I have no public repositories". Two conflicting statements.

The section now states "All my repositories are forks" if that's the case.
This commit is contained in:
Lawrence MacGuire
2013-11-28 20:21:14 +08:00
parent ebc9668856
commit 90bf1cf601

View File

@@ -372,7 +372,11 @@ var run = function() {
++itemCount;
});
} else {
$('#jobs').html('').append('<p class="enlarge">I do not have any public repositories. Sorry.</p>');
if(data.length > 0){
$('#jobs').html('').append('<p class="enlarge">All my repositories are forks. Sorry.</p>');
} else {
$('#jobs').html('').append('<p class="enlarge">I do not have any public repositories. Sorry.</p>');
}
}
}
});