From 225795f06265f19816e2ab53cf8ad946df3d5dee Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Wed, 24 Aug 2011 07:53:22 +0000 Subject: rename .rhtml to .html.erb of app/views/messages/_form.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@6597 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/messages/_form.html.erb | 26 ++++++++++++++++++++++++++ app/views/messages/_form.rhtml | 26 -------------------------- 2 files changed, 26 insertions(+), 26 deletions(-) create mode 100644 app/views/messages/_form.html.erb delete mode 100644 app/views/messages/_form.rhtml (limited to 'app/views/messages') diff --git a/app/views/messages/_form.html.erb b/app/views/messages/_form.html.erb new file mode 100644 index 000000000..5b4bd10da --- /dev/null +++ b/app/views/messages/_form.html.erb @@ -0,0 +1,26 @@ +<%= error_messages_for 'message' %> +<% replying ||= false %> + +
+ +


+<%= f.text_field :subject, :size => 120 %> + +<% if !replying && User.current.allowed_to?(:edit_messages, @project) %> + + +<% end %> +

+ +<% if !replying && !@message.new_record? && User.current.allowed_to?(:edit_messages, @project) %> +


+ <%= f.select :board_id, @project.boards.collect {|b| [b.name, b.id]} %>

+<% end %> + +

<%= f.text_area :content, :cols => 80, :rows => 15, :class => 'wiki-edit', :id => 'message_content' %>

+<%= wikitoolbar_for 'message_content' %> + + +

<%= l(:label_attachment_plural) %>
+<%= render :partial => 'attachments/form' %>

+
diff --git a/app/views/messages/_form.rhtml b/app/views/messages/_form.rhtml deleted file mode 100644 index 5b4bd10da..000000000 --- a/app/views/messages/_form.rhtml +++ /dev/null @@ -1,26 +0,0 @@ -<%= error_messages_for 'message' %> -<% replying ||= false %> - -
- -


-<%= f.text_field :subject, :size => 120 %> - -<% if !replying && User.current.allowed_to?(:edit_messages, @project) %> - - -<% end %> -

- -<% if !replying && !@message.new_record? && User.current.allowed_to?(:edit_messages, @project) %> -


- <%= f.select :board_id, @project.boards.collect {|b| [b.name, b.id]} %>

-<% end %> - -

<%= f.text_area :content, :cols => 80, :rows => 15, :class => 'wiki-edit', :id => 'message_content' %>

-<%= wikitoolbar_for 'message_content' %> - - -

<%= l(:label_attachment_plural) %>
-<%= render :partial => 'attachments/form' %>

-
-- cgit v1.2.3