From: Toshi MARUYAMA Date: Tue, 23 Aug 2011 08:37:43 +0000 (+0000) Subject: rename .rhtml to .html.erb of app/views/repositories/_link_to_functions.rhtml. X-Git-Tag: 1.3.0~1427 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4b14a18bfc5defe0e370f7db782471ff68616ddb;p=redmine.git rename .rhtml to .html.erb of app/views/repositories/_link_to_functions.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@6534 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/repositories/_link_to_functions.html.erb b/app/views/repositories/_link_to_functions.html.erb new file mode 100644 index 000000000..412d5f86f --- /dev/null +++ b/app/views/repositories/_link_to_functions.html.erb @@ -0,0 +1,15 @@ +<% if @entry && @entry.kind == 'file' %> + +

+<%= link_to_if action_name != 'changes', l(:label_history), {:action => 'changes', :id => @project, :path => to_path_param(@path), :rev => @rev } %> | +<% if @repository.supports_cat? %> + <%= link_to_if action_name != 'entry', l(:button_view), {:action => 'entry', :id => @project, :path => to_path_param(@path), :rev => @rev } %> | +<% end %> +<% if @repository.supports_annotate? %> + <%= link_to_if action_name != 'annotate', l(:button_annotate), {:action => 'annotate', :id => @project, :path => to_path_param(@path), :rev => @rev } %> | +<% end %> +<%= link_to(l(:button_download), {:action => 'entry', :id => @project, :path => to_path_param(@path), :rev => @rev, :format => 'raw' }) if @repository.supports_cat? %> +<%= "(#{number_to_human_size(@entry.size)})" if @entry.size %> +

+ +<% end %> diff --git a/app/views/repositories/_link_to_functions.rhtml b/app/views/repositories/_link_to_functions.rhtml deleted file mode 100644 index 412d5f86f..000000000 --- a/app/views/repositories/_link_to_functions.rhtml +++ /dev/null @@ -1,15 +0,0 @@ -<% if @entry && @entry.kind == 'file' %> - -

-<%= link_to_if action_name != 'changes', l(:label_history), {:action => 'changes', :id => @project, :path => to_path_param(@path), :rev => @rev } %> | -<% if @repository.supports_cat? %> - <%= link_to_if action_name != 'entry', l(:button_view), {:action => 'entry', :id => @project, :path => to_path_param(@path), :rev => @rev } %> | -<% end %> -<% if @repository.supports_annotate? %> - <%= link_to_if action_name != 'annotate', l(:button_annotate), {:action => 'annotate', :id => @project, :path => to_path_param(@path), :rev => @rev } %> | -<% end %> -<%= link_to(l(:button_download), {:action => 'entry', :id => @project, :path => to_path_param(@path), :rev => @rev, :format => 'raw' }) if @repository.supports_cat? %> -<%= "(#{number_to_human_size(@entry.size)})" if @entry.size %> -

- -<% end %>