diff options
Diffstat (limited to 'app/controllers/graph_controller.rb')
-rw-r--r-- | app/controllers/graph_controller.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/controllers/graph_controller.rb b/app/controllers/graph_controller.rb index c370433e500..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! @@ -20,7 +21,10 @@ class GraphController < ProjectResourceController respond_to do |format| format.html format.json do - graph = Gitlab::Graph::JsonBuilder.new(project, @ref, @commit) + 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 |