fix sources bugs from zhangyang tmp code
This commit is contained in:
parent
2a9cb28c4e
commit
3ec4e14bfd
|
@ -3,7 +3,7 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= link_to l(:label_statistics),
|
<%= 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? %>
|
:class => 'icon icon-stats' if @repository.supports_all_revisions? %>
|
||||||
|
|
||||||
<%= form_tag({:action => controller.action_name,
|
<%= form_tag({:action => controller.action_name,
|
||||||
|
|
|
@ -1,6 +1,12 @@
|
||||||
<h3><%= l(:label_statistics) %></h3>
|
<h3 style="padding-top: 40px;"><%= l(:label_statistics) %></h3>
|
||||||
|
|
||||||
<% src = "http://localhost:3000/statistics/"+@project_id+"/index.html"%>
|
<p>
|
||||||
<iframe src=<%= src %> name="top" style="border:0;width:100%;height:1000px;"></iframe>
|
<%= 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")) %>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<%= 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")) %>
|
||||||
|
</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