]> source.dussan.org Git - redmine.git/commitdiff
rename .rhtml to .html.erb of app/views/issues/new.rhtml.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 1 Sep 2011 15:19:44 +0000 (15:19 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 1 Sep 2011 15:19:44 +0000 (15:19 +0000)
: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@7020 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/issues/new.html.erb [new file with mode: 0644]
app/views/issues/new.rhtml [deleted file]

diff --git a/app/views/issues/new.html.erb b/app/views/issues/new.html.erb
new file mode 100644 (file)
index 0000000..867590f
--- /dev/null
@@ -0,0 +1,27 @@
+<h2><%=l(:label_issue_new)%></h2>
+
+<% labelled_tabular_form_for :issue, @issue, :url => {:controller => 'issues', :action => 'create', :project_id => @project},
+                             :html => {:multipart => true, :id => 'issue-form', :class => 'tabular new-issue-form'} do |f| %>
+    <%= error_messages_for 'issue' %>
+    <div class="box">
+    <%= render :partial => 'issues/form', :locals => {:f => f} %>
+    </div>
+    <%= submit_tag l(:button_create) %>
+    <%= submit_tag l(:button_create_and_continue), :name => 'continue' %>
+    <%= link_to_remote l(:label_preview), 
+                       { :url => preview_issue_path(:project_id => @project),
+                         :method => 'post',
+                         :update => 'preview',
+                         :with => "Form.serialize('issue-form')",
+                         :complete => "Element.scrollTo('preview')"
+                       }, :accesskey => accesskey(:preview) %>
+                                                                                        
+               <%= javascript_tag "Form.Element.focus('issue_subject');" %>
+<% end %>
+
+<div id="preview" class="wiki"></div>
+
+<% content_for :header_tags do %>
+    <%= stylesheet_link_tag 'scm' %>
+    <%= robot_exclusion_tag %>
+<% end %>
diff --git a/app/views/issues/new.rhtml b/app/views/issues/new.rhtml
deleted file mode 100644 (file)
index 867590f..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-<h2><%=l(:label_issue_new)%></h2>
-
-<% labelled_tabular_form_for :issue, @issue, :url => {:controller => 'issues', :action => 'create', :project_id => @project},
-                             :html => {:multipart => true, :id => 'issue-form', :class => 'tabular new-issue-form'} do |f| %>
-    <%= error_messages_for 'issue' %>
-    <div class="box">
-    <%= render :partial => 'issues/form', :locals => {:f => f} %>
-    </div>
-    <%= submit_tag l(:button_create) %>
-    <%= submit_tag l(:button_create_and_continue), :name => 'continue' %>
-    <%= link_to_remote l(:label_preview), 
-                       { :url => preview_issue_path(:project_id => @project),
-                         :method => 'post',
-                         :update => 'preview',
-                         :with => "Form.serialize('issue-form')",
-                         :complete => "Element.scrollTo('preview')"
-                       }, :accesskey => accesskey(:preview) %>
-                                                                                        
-               <%= javascript_tag "Form.Element.focus('issue_subject');" %>
-<% end %>
-
-<div id="preview" class="wiki"></div>
-
-<% content_for :header_tags do %>
-    <%= stylesheet_link_tag 'scm' %>
-    <%= robot_exclusion_tag %>
-<% end %>