Show gravatar icon on tooltip.

This commit is contained in:
Sato Hiroyuki 2013-02-28 14:56:27 +09:00
parent 00d0e57e85
commit 2a687dd562
3 changed files with 12 additions and 6 deletions

View file

@ -4,7 +4,7 @@ module Graph
class Commit
include ActionView::Helpers::TagHelper
attr_accessor :time, :spaces, :refs, :parent_spaces
attr_accessor :time, :spaces, :refs, :parent_spaces, :icon
def initialize(commit)
@_commit = commit
@ -23,8 +23,9 @@ module Graph
[p.id,0,0]
end
h[:author] = {
name: author.name,
email: author.email
name: author.name,
email: author.email,
icon: icon
}
h[:time] = time
h[:space] = spaces.first