From: Toshi MARUYAMA Date: Wed, 24 Aug 2011 00:04:32 +0000 (+0000) Subject: rename .rhtml to .html.erb of app/views/common/_tabs.rhtml. X-Git-Tag: 1.3.0~1417 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b1afd6f29afffeb2531661a99f023392f8b3e981;p=redmine.git rename .rhtml to .html.erb of app/views/common/_tabs.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@6544 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/common/_tabs.html.erb b/app/views/common/_tabs.html.erb new file mode 100644 index 000000000..c99c6a9f4 --- /dev/null +++ b/app/views/common/_tabs.html.erb @@ -0,0 +1,28 @@ +<% selected_tab = params[:tab] ? params[:tab].to_s : tabs.first[:name] %> + +
+ + +
+ + + +<% tabs.each do |tab| -%> + <%= content_tag('div', render(:partial => tab[:partial], :locals => {:tab => tab} ), + :id => "tab-content-#{tab[:name]}", + :style => (tab[:name] != selected_tab ? 'display:none' : nil), + :class => 'tab-content') %> +<% end -%> diff --git a/app/views/common/_tabs.rhtml b/app/views/common/_tabs.rhtml deleted file mode 100644 index c99c6a9f4..000000000 --- a/app/views/common/_tabs.rhtml +++ /dev/null @@ -1,28 +0,0 @@ -<% selected_tab = params[:tab] ? params[:tab].to_s : tabs.first[:name] %> - -
- - -
- - - -<% tabs.each do |tab| -%> - <%= content_tag('div', render(:partial => tab[:partial], :locals => {:tab => tab} ), - :id => "tab-content-#{tab[:name]}", - :style => (tab[:name] != selected_tab ? 'display:none' : nil), - :class => 'tab-content') %> -<% end -%>