Wider SVG graphs in repository stats.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1601 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
a0f707e54b
commit
94cf4f258f
|
@ -228,7 +228,7 @@ private
|
||||||
|
|
||||||
graph = SVG::Graph::Bar.new(
|
graph = SVG::Graph::Bar.new(
|
||||||
:height => 300,
|
:height => 300,
|
||||||
:width => 500,
|
:width => 800,
|
||||||
:fields => fields.reverse,
|
:fields => fields.reverse,
|
||||||
:stack => :side,
|
:stack => :side,
|
||||||
:scale_integers => true,
|
:scale_integers => true,
|
||||||
|
@ -270,8 +270,8 @@ private
|
||||||
fields = fields.collect {|c| c.gsub(%r{<.+@.+>}, '') }
|
fields = fields.collect {|c| c.gsub(%r{<.+@.+>}, '') }
|
||||||
|
|
||||||
graph = SVG::Graph::BarHorizontal.new(
|
graph = SVG::Graph::BarHorizontal.new(
|
||||||
:height => 300,
|
:height => 400,
|
||||||
:width => 500,
|
:width => 800,
|
||||||
:fields => fields,
|
:fields => fields,
|
||||||
:stack => :side,
|
:stack => :side,
|
||||||
:scale_integers => true,
|
:scale_integers => true,
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
<h2><%= l(:label_statistics) %></h2>
|
<h2><%= l(:label_statistics) %></h2>
|
||||||
|
|
||||||
<table width="100%">
|
<p>
|
||||||
<tr><td>
|
<%= tag("embed", :width => 800, :height => 300, :type => "image/svg+xml", :src => url_for(:controller => 'repositories', :action => 'graph', :id => @project, :graph => "commits_per_month")) %>
|
||||||
<%= tag("embed", :width => 500, :height => 300, :type => "image/svg+xml", :src => url_for(:controller => 'repositories', :action => 'graph', :id => @project, :graph => "commits_per_month")) %>
|
</p>
|
||||||
</td><td>
|
<p>
|
||||||
<%= tag("embed", :width => 500, :height => 300, :type => "image/svg+xml", :src => url_for(:controller => 'repositories', :action => 'graph', :id => @project, :graph => "commits_per_author")) %>
|
<%= tag("embed", :width => 800, :height => 400, :type => "image/svg+xml", :src => url_for(:controller => 'repositories', :action => 'graph', :id => @project, :graph => "commits_per_author")) %>
|
||||||
</td></tr>
|
</p>
|
||||||
</table>
|
|
||||||
<br />
|
|
||||||
<p><%= link_to l(:button_back), :action => 'show', :id => @project %></p>
|
<p><%= link_to l(:button_back), :action => 'show', :id => @project %></p>
|
||||||
|
|
||||||
<% html_title(l(:label_repository), l(:label_statistics)) -%>
|
<% html_title(l(:label_repository), l(:label_statistics)) -%>
|
||||||
|
|
Loading…
Reference in New Issue