add a link to the commit author's github profile
This commit is contained in:
parent
a4a2f78a7a
commit
8e13989d6a
|
@ -115,6 +115,15 @@ a:active { color:#369; text-decoration:none; }
|
|||
font-size: smaller;
|
||||
}
|
||||
|
||||
a.author:link,
|
||||
a.author:visited,
|
||||
a.author:link:hover,
|
||||
a.author:visited:hover,
|
||||
a.author:focus,
|
||||
a.author:active {
|
||||
color: #888;
|
||||
}
|
||||
|
||||
|
||||
/* "Download Now!" link */
|
||||
.downloadnow {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -13,10 +13,13 @@ jQuery.fn.listCommits = function(username, repository, branch) {
|
|||
|
||||
$(commits).each(function(i) {
|
||||
var githubUrl = 'https://github.com/' + username + '/' + repository + '/commit/' + this.sha,
|
||||
shortMessage = cutLines(this.commit.message),
|
||||
commitAuthor = this.author !== null ? this.author.login : this.commit.author.name;
|
||||
shortMessage = cutLines(this.commit.message);
|
||||
|
||||
list.append('<li><a href="' + githubUrl + '">' + shortMessage + '</a> <em>by <strong>' + commitAuthor + '</strong></em></li>');
|
||||
if (this.author !== null) {
|
||||
list.append('<li><a href="' + githubUrl + '">' + shortMessage + '</a><em> by <strong><a class="author" href="' + 'https://github.com/' + this.author.login + '">' + this.author.login + '</a></strong></em></li>');
|
||||
} else {
|
||||
list.append('<li><a href="' + githubUrl + '">' + shortMessage + '</a><em> by <strong>' + this.commit.author.name + '</strong></em></li>');
|
||||
}
|
||||
|
||||
if (i === 9) {
|
||||
return false;
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue