Contributed by Max Horn. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11723 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
1bdd37f3e0
commit
ba11020fdf
|
@ -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,
|
||||
|
|
|
@ -1,10 +1,18 @@
|
|||
<h2><%= l(:label_statistics) %></h2>
|
||||
|
||||
<p>
|
||||
<%= 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")) %>
|
||||
</p>
|
||||
<p>
|
||||
<%= 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")) %>
|
||||
</p>
|
||||
|
||||
<p><%= link_to l(:button_back), :action => 'show', :id => @project %></p>
|
||||
|
|
Loading…
Reference in New Issue