summaryrefslogtreecommitdiffstats
path: root/app/views/repositories
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/repositories')
-rw-r--r--app/views/repositories/show.rhtml4
-rw-r--r--app/views/repositories/stats.rhtml11
2 files changed, 15 insertions, 0 deletions
diff --git a/app/views/repositories/show.rhtml b/app/views/repositories/show.rhtml
index e7d71cb79..04a58b4c9 100644
--- a/app/views/repositories/show.rhtml
+++ b/app/views/repositories/show.rhtml
@@ -1,3 +1,7 @@
+<div class="contextual">
+<%= link_to l(:label_statistics), {:action => 'stats', :id => @project}, :class => 'icon icon-stats' %>
+</div>
+
<h2><%= l(:label_repository) %></h2>
<h3><%= l(:label_browse) %></h3>
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