mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
Added gravatar icons to commit.html (defaults to "wavatar" icons)
This commit is contained in:
committed by
Pieter de Bie
parent
85c942f530
commit
0e46f27ad0
+6
-2
@@ -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 + " <<a href='mailto:" + commit.author_email + "'>" + commit.author_email + "</a>>";
|
||||
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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user