summaryrefslogtreecommitdiffstats
path: root/app/views/repositories/stats.rhtml
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-03-25 17:11:46 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-03-25 17:11:46 +0000
commit0ef114e00641a3cdb8771675a30cae31177b2d61 (patch)
treec07f0919f4b010a9262ba04b52ecb32f5a8c7dd1 /app/views/repositories/stats.rhtml
parent887f11435b4d18ccb5d6e0e39893935f93c903c9 (diff)
downloadredmine-0ef114e00641a3cdb8771675a30cae31177b2d61.tar.gz
redmine-0ef114e00641a3cdb8771675a30cae31177b2d61.zip
added simple svn statistics graphs, rendered using SVG::Graph
git-svn-id: http://redmine.rubyforge.org/svn/trunk@380 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/repositories/stats.rhtml')
-rw-r--r--app/views/repositories/stats.rhtml11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/views/repositories/stats.rhtml b/app/views/repositories/stats.rhtml
new file mode 100644
index 000000000..7a9423f8c
--- /dev/null
+++ b/app/views/repositories/stats.rhtml
@@ -0,0 +1,11 @@
+<h2><%= l(:label_statistics) %></h2>
+
+<table width="100%">
+<tr><td>
+<%= tag("embed", :width => 500, :height => 300, :type => "image/svg+xml", :src => url_for(:controller => 'repositories', :action => 'graph', :id => @project, :graph => "commits_per_month")) %>
+</td><td>
+<%= tag("embed", :width => 500, :height => 300, :type => "image/svg+xml", :src => url_for(:controller => 'repositories', :action => 'graph', :id => @project, :graph => "commits_per_author")) %>
+</td></tr>
+</table>
+<br />
+<p><%= link_to l(:button_back), :action => 'show', :id => @project %></p> \ No newline at end of file