diff options
author | Sato Hiroyuki <sathiroyuki@gmail.com> | 2013-02-28 14:56:27 +0900 |
---|---|---|
committer | Sato Hiroyuki <sathiroyuki@gmail.com> | 2013-02-28 14:56:27 +0900 |
commit | 2a687dd5625c29e48b7b64a388a828c358d45215 (patch) | |
tree | 1e8cbcb6ff8977008720612044f4079a6a1941cf /app/models/graph/commit.rb | |
parent | 00d0e57e859454c62084893a74fad71c26d5c50c (diff) | |
download | gitlab-ce-2a687dd5625c29e48b7b64a388a828c358d45215.tar.gz |
Show gravatar icon on tooltip.
Diffstat (limited to 'app/models/graph/commit.rb')
-rw-r--r-- | app/models/graph/commit.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/models/graph/commit.rb b/app/models/graph/commit.rb index 742a73b38b7..8ed61f4b5af 100644 --- a/app/models/graph/commit.rb +++ b/app/models/graph/commit.rb @@ -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 |