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