Patch #13486 ยป flexible-repos-stats.patch
| app/controllers/repositories_controller.rb | ||
|---|---|---|
| 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, |
| app/views/repositories/stats.html.erb | ||
|---|---|---|
| 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], :type => "image/svg+xml", :src => url_for(:controller => 'repositories', :action => 'graph', :id => @project, :repository_id => @repository.identifier_param, :graph => "commits_per_month")) %>
|
|
| 5 | 5 |
</p> |
| 6 | 6 |
<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")) %>
|
|
| 7 |
<%= 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")) %>
|
|
| 8 | 8 |
</p> |
| 9 | 9 | |
| 10 | 10 |
<p><%= link_to l(:button_back), :action => 'show', :id => @project %></p> |