@@ -411,7 +411,7 class RepositoriesController < ApplicationController | |||
|
411 | 411 | fields = fields.collect {|c| c.gsub(%r{<.+@.+>}, '') } |
|
412 | 412 | |
|
413 | 413 | graph = SVG::Graph::BarHorizontal.new( |
|
414 | :height => 400, | |
|
414 | :height => 15 * commits_data.length, | |
|
415 | 415 | :width => 800, |
|
416 | 416 | :fields => fields, |
|
417 | 417 | :stack => :side, |
@@ -1,10 +1,18 | |||
|
1 | 1 | <h2><%= l(:label_statistics) %></h2> |
|
2 | 2 | |
|
3 | 3 | <p> |
|
4 | <%= tag("embed", :width => 800, :height => 300, :type => "image/svg+xml", :src => url_for(:controller => 'repositories', :action => 'graph', :id => @project, :repository_id => @repository.identifier_param, :graph => "commits_per_month")) %> | |
|
4 | <%= tag("embed", :width => 800, :height => params[:height_commits_per_month], | |
|
5 | :type => "image/svg+xml", :src => url_for(:controller => 'repositories', | |
|
6 | :action => 'graph', :id => @project, | |
|
7 | :repository_id => @repository.identifier_param, | |
|
8 | :graph => "commits_per_month")) %> | |
|
5 | 9 | </p> |
|
6 | 10 | <p> |
|
7 | <%= tag("embed", :width => 800, :height => 400, :type => "image/svg+xml", :src => url_for(:controller => 'repositories', :action => 'graph', :id => @project, :repository_id => @repository.identifier_param, :graph => "commits_per_author")) %> | |
|
11 | <%= tag("embed", :width => 800, :height => params[:height_commits_per_author], | |
|
12 | :type => "image/svg+xml", :src => url_for(:controller => 'repositories', | |
|
13 | :action => 'graph', :id => @project, | |
|
14 | :repository_id => @repository.identifier_param, | |
|
15 | :graph => "commits_per_author")) %> | |
|
8 | 16 | </p> |
|
9 | 17 | |
|
10 | 18 | <p><%= link_to l(:button_back), :action => 'show', :id => @project %></p> |
General Comments 0
You need to be logged in to leave comments.
Login now