diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb index a757df1..2912b72 100644 --- a/app/controllers/repositories_controller.rb +++ b/app/controllers/repositories_controller.rb @@ -411,7 +411,7 @@ class RepositoriesController < ApplicationController fields = fields.collect {|c| c.gsub(%r{<.+@.+>}, '') } graph = SVG::Graph::BarHorizontal.new( - :height => 400, + :height => 15 * commits_data.length, :width => 800, :fields => fields, :stack => :side, diff --git a/app/views/repositories/stats.html.erb b/app/views/repositories/stats.html.erb index b9a5d7d..d61c51e 100644 --- a/app/views/repositories/stats.html.erb +++ b/app/views/repositories/stats.html.erb @@ -1,10 +1,10 @@

<%= l(:label_statistics) %>

-<%= 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")) %> +<%= tag("embed", :width => 800, :height => params[:height_commits_per_month], :type => "image/svg+xml", :src => url_for(:controller => 'repositories', :action => 'graph', :id => @project, :repository_id => @repository.identifier_param, :graph => "commits_per_month")) %>

-<%= 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")) %> +<%= tag("embed", :width => 800, :height => params[:height_commits_per_author], :type => "image/svg+xml", :src => url_for(:controller => 'repositories', :action => 'graph', :id => @project, :repository_id => @repository.identifier_param, :graph => "commits_per_author")) %>

<%= link_to l(:button_back), :action => 'show', :id => @project %>