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

@ -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