Added gravatar icons to commit.html (defaults to "wavatar" icons)

This commit is contained in:
Jeremy Sanderson
2008-10-14 16:57:03 -05:00
committed by Pieter de Bie
parent 85c942f530
commit 0e46f27ad0
5 changed files with 276 additions and 2 deletions
+6 -2
View File
@@ -127,10 +127,14 @@ var loadCommit = function() {
$("notification").style.display = "none";
$("commitID").innerHTML = commit.sha;
if (commit.author_email)
if (commit.author_email) {
$("authorID").innerHTML = commit.author_name + " &lt;<a href='mailto:" + commit.author_email + "'>" + commit.author_email + "</a>&gt;";
else
$("gravatar").src = "http://www.gravatar.com/avatar/" + hex_md5(commit.author_email) + "?d=wavatar";
}
else {
$("authorID").innerHTML = commit.author_name;
$("gravatar").src = "http://www.gravatar.com/avatar/?d=wavatar";
}
$("date").innerHTML = commit.author_date;
$("subjectID").innerHTML =CommitObject.subject.escapeHTML();