From: Toshi MARUYAMA Date: Tue, 23 Aug 2011 08:38:18 +0000 (+0000) Subject: rename .rhtml to .html.erb of app/views/repositories/_navigation.rhtml. X-Git-Tag: 1.3.0~1426 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=84dc66dd3d4f8459d258ef61f451c94a0ecd5b5a;p=redmine.git rename .rhtml to .html.erb of app/views/repositories/_navigation.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@6535 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/repositories/_navigation.html.erb b/app/views/repositories/_navigation.html.erb new file mode 100644 index 000000000..5671e2948 --- /dev/null +++ b/app/views/repositories/_navigation.html.erb @@ -0,0 +1,21 @@ +<% content_for :header_tags do %> + <%= javascript_include_tag 'repository_navigation' %> +<% end %> + +<%= link_to l(:label_statistics), {:action => 'stats', :id => @project}, :class => 'icon icon-stats' %> + +<% form_tag({:action => controller.action_name, :id => @project, :path => to_path_param(@path), :rev => ''}, {:method => :get, :id => 'revision_selector'}) do -%> + + <% if !@repository.branches.nil? && @repository.branches.length > 0 -%> + | <%= l(:label_branch) %>: + <%= select_tag :branch, options_for_select([''] + @repository.branches,@rev), :id => 'branch' %> + <% end -%> + + <% if !@repository.tags.nil? && @repository.tags.length > 0 -%> + | <%= l(:label_tag) %>: + <%= select_tag :tag, options_for_select([''] + @repository.tags,@rev), :id => 'tag' %> + <% end -%> + + | <%= l(:label_revision) %>: + <%= text_field_tag 'rev', @rev, :size => 8 %> +<% end -%> diff --git a/app/views/repositories/_navigation.rhtml b/app/views/repositories/_navigation.rhtml deleted file mode 100644 index 5671e2948..000000000 --- a/app/views/repositories/_navigation.rhtml +++ /dev/null @@ -1,21 +0,0 @@ -<% content_for :header_tags do %> - <%= javascript_include_tag 'repository_navigation' %> -<% end %> - -<%= link_to l(:label_statistics), {:action => 'stats', :id => @project}, :class => 'icon icon-stats' %> - -<% form_tag({:action => controller.action_name, :id => @project, :path => to_path_param(@path), :rev => ''}, {:method => :get, :id => 'revision_selector'}) do -%> - - <% if !@repository.branches.nil? && @repository.branches.length > 0 -%> - | <%= l(:label_branch) %>: - <%= select_tag :branch, options_for_select([''] + @repository.branches,@rev), :id => 'branch' %> - <% end -%> - - <% if !@repository.tags.nil? && @repository.tags.length > 0 -%> - | <%= l(:label_tag) %>: - <%= select_tag :tag, options_for_select([''] + @repository.tags,@rev), :id => 'tag' %> - <% end -%> - - | <%= l(:label_revision) %>: - <%= text_field_tag 'rev', @rev, :size => 8 %> -<% end -%>