From: Toshi MARUYAMA Date: Tue, 30 Aug 2011 14:14:37 +0000 (+0000) Subject: rename .rhtml to .html.erb of app/views/news/new.rhtml. X-Git-Tag: 1.3.0~1152 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ad9f7f4eeb619319a38a94401c04ed23e7fdba94;p=redmine.git rename .rhtml to .html.erb of app/views/news/new.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@6810 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/news/new.html.erb b/app/views/news/new.html.erb new file mode 100644 index 000000000..946646e3e --- /dev/null +++ b/app/views/news/new.html.erb @@ -0,0 +1,14 @@ +

<%=l(:label_news_new)%>

+ +<% labelled_tabular_form_for :news, @news, :url => project_news_index_path(@project), + :html => { :id => 'news-form' } do |f| %> +<%= render :partial => 'news/form', :locals => { :f => f } %> +<%= submit_tag l(:button_create) %> +<%= link_to_remote l(:label_preview), + { :url => preview_news_path(:project_id => @project), + :method => 'get', + :update => 'preview', + :with => "Form.serialize('news-form')" + }, :accesskey => accesskey(:preview) %> +<% end %> +
diff --git a/app/views/news/new.rhtml b/app/views/news/new.rhtml deleted file mode 100644 index 946646e3e..000000000 --- a/app/views/news/new.rhtml +++ /dev/null @@ -1,14 +0,0 @@ -

<%=l(:label_news_new)%>

- -<% labelled_tabular_form_for :news, @news, :url => project_news_index_path(@project), - :html => { :id => 'news-form' } do |f| %> -<%= render :partial => 'news/form', :locals => { :f => f } %> -<%= submit_tag l(:button_create) %> -<%= link_to_remote l(:label_preview), - { :url => preview_news_path(:project_id => @project), - :method => 'get', - :update => 'preview', - :with => "Form.serialize('news-form')" - }, :accesskey => accesskey(:preview) %> -<% end %> -