Show gravatar icon on tooltip.
This commit is contained in:
parent
00d0e57e85
commit
2a687dd562
3 changed files with 12 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue