From: Toshi MARUYAMA Date: Thu, 1 Sep 2011 13:50:43 +0000 (+0000) Subject: rename .rhtml to .html.erb of app/views/issues/_form_custom_fields.rhtml. X-Git-Tag: 1.3.0~955 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=895bbd6da45010d723e7f0d0d066a20c3aecf6b0;p=redmine.git rename .rhtml to .html.erb of app/views/issues/_form_custom_fields.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@7008 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/issues/_form_custom_fields.html.erb b/app/views/issues/_form_custom_fields.html.erb new file mode 100644 index 000000000..7a66ed330 --- /dev/null +++ b/app/views/issues/_form_custom_fields.html.erb @@ -0,0 +1,12 @@ +
+<% i = 0 %> +<% split_on = (@issue.custom_field_values.size / 2.0).ceil - 1 %> +<% @issue.custom_field_values.each do |value| %> +

<%= custom_field_tag_with_label :issue, value %>

+<% if i == split_on -%> +
+<% end -%> +<% i += 1 -%> +<% end -%> +
+
diff --git a/app/views/issues/_form_custom_fields.rhtml b/app/views/issues/_form_custom_fields.rhtml deleted file mode 100644 index 7a66ed330..000000000 --- a/app/views/issues/_form_custom_fields.rhtml +++ /dev/null @@ -1,12 +0,0 @@ -
-<% i = 0 %> -<% split_on = (@issue.custom_field_values.size / 2.0).ceil - 1 %> -<% @issue.custom_field_values.each do |value| %> -

<%= custom_field_tag_with_label :issue, value %>

-<% if i == split_on -%> -
-<% end -%> -<% i += 1 -%> -<% end -%> -
-