Web: Use same style for "recent git commits" like the other lists

This commit is contained in:
Tim Gerundt 2012-07-14 15:22:52 +02:00
parent e9ea8a4d37
commit ef2395f4e1
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ jQuery.fn.listCommits = function(username, repository, branch) {
$.getJSON('https://api.github.com/repos/' + username + '/' + repository + '/commits?sha=' + branch + '&callback=?', function(response) { $.getJSON('https://api.github.com/repos/' + username + '/' + repository + '/commits?sha=' + branch + '&callback=?', function(response) {
var commits = response.data; var commits = response.data;
var list = $('<ul/>'); var list = $('<ul class="rssfeeditems"/>');
target.empty().append(list); target.empty().append(list);
$(commits).each(function(i) { $(commits).each(function(i) {
var githubUrl = 'https://github.com/' + username + '/' + repository + '/commit/' + this.sha; var githubUrl = 'https://github.com/' + username + '/' + repository + '/commit/' + this.sha;
@ -17,7 +17,7 @@ jQuery.fn.listCommits = function(username, repository, branch) {
author = this.author.name; author = this.author.name;
} }
list.append('<li><a href="' + githubUrl + '">' + shortMessage + '</a> by <strong>' + author + '</strong></li>'); list.append('<li><a href="' + githubUrl + '">' + shortMessage + '</a> <em>by <strong>' + author + '</strong></em></li>');
if (i == 9) return false; if (i == 9) return false;
}); });