diff --git a/app/views/repositories/_navigation.html.erb b/app/views/repositories/_navigation.html.erb index e46e0dac2..a42daa8f5 100644 --- a/app/views/repositories/_navigation.html.erb +++ b/app/views/repositories/_navigation.html.erb @@ -3,7 +3,7 @@ <% end %> <%= link_to l(:label_statistics), - {:controller => 'repositories', :action => 'stats', :id => @project, :repository_id => @repository.identifier_param}, + {:action => 'stats', :id => @project, :repository_id => @repository.identifier_param}, :class => 'icon icon-stats' if @repository.supports_all_revisions? %> <%= form_tag({:action => controller.action_name, diff --git a/app/views/repositories/stats.html.erb b/app/views/repositories/stats.html.erb index d790f3d57..50648f66f 100644 --- a/app/views/repositories/stats.html.erb +++ b/app/views/repositories/stats.html.erb @@ -1,6 +1,12 @@ -
+<%= tag("embed", :width => 670, :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 => 670, :height => 400, :type => "image/svg+xml", :src => url_for(:controller => 'repositories', :action => 'graph', :id => @project, :repository_id => @repository.identifier_param, :graph => "commits_per_author")) %> +
+ +<%= link_to l(:button_back), :action => 'show', :id => @project %>
<% html_title(l(:label_repository), l(:label_statistics)) -%>