From: Toshi MARUYAMA Date: Tue, 23 Aug 2011 08:34:43 +0000 (+0000) Subject: rename .rhtml to .html.erb of app/views/repositories/stats.rhtml. X-Git-Tag: 1.3.0~1431 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=737538bd9acab2576b795f60fcf1f0bd9aae4302;p=redmine.git rename .rhtml to .html.erb of app/views/repositories/stats.rhtml. :rhtml and :rxml were finally removed as template handlers at Rails 3.1 RC4. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6530 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/repositories/stats.html.erb b/app/views/repositories/stats.html.erb new file mode 100644 index 000000000..e5e737506 --- /dev/null +++ b/app/views/repositories/stats.html.erb @@ -0,0 +1,12 @@ +

<%= l(:label_statistics) %>

+ +

+<%= 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 => 800, :height => 400, :type => "image/svg+xml", :src => url_for(:controller => 'repositories', :action => 'graph', :id => @project, :graph => "commits_per_author")) %> +

+ +

<%= link_to l(:button_back), :action => 'show', :id => @project %>

+ +<% html_title(l(:label_repository), l(:label_statistics)) -%> diff --git a/app/views/repositories/stats.rhtml b/app/views/repositories/stats.rhtml deleted file mode 100644 index e5e737506..000000000 --- a/app/views/repositories/stats.rhtml +++ /dev/null @@ -1,12 +0,0 @@ -

<%= l(:label_statistics) %>

- -

-<%= 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 => 800, :height => 400, :type => "image/svg+xml", :src => url_for(:controller => 'repositories', :action => 'graph', :id => @project, :graph => "commits_per_author")) %> -

- -

<%= link_to l(:button_back), :action => 'show', :id => @project %>

- -<% html_title(l(:label_repository), l(:label_statistics)) -%>