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/controllers/graph_controller.rb | |
parent | 00d0e57e859454c62084893a74fad71c26d5c50c (diff) | |
download | gitlab-ce-2a687dd5625c29e48b7b64a388a828c358d45215.tar.gz |
Show gravatar icon on tooltip.
Diffstat (limited to 'app/controllers/graph_controller.rb')
-rw-r--r-- | app/controllers/graph_controller.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/graph_controller.rb b/app/controllers/graph_controller.rb index 8aadcfef8c2..33cb2d2dcb9 100644 --- a/app/controllers/graph_controller.rb +++ b/app/controllers/graph_controller.rb @@ -1,5 +1,6 @@ class GraphController < ProjectResourceController include ExtractsPath + include ApplicationHelper # Authorize before_filter :authorize_read_project! @@ -21,6 +22,9 @@ class GraphController < ProjectResourceController format.html format.json do graph = Graph::JsonBuilder.new(project, @ref, @commit) + graph.commits.each do |c| + c.icon = gravatar_icon(c.author.email) + end render :json => graph.to_json end end |