From: Toshi MARUYAMA Date: Thu, 1 Sep 2011 03:55:34 +0000 (+0000) Subject: rename .rhtml to .html.erb of app/views/custom_fields/_index.rhtml. X-Git-Tag: 1.3.0~998 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8a9038297b6dabbb520587853fb3f06133da252b;p=redmine.git rename .rhtml to .html.erb of app/views/custom_fields/_index.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@6965 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/custom_fields/_index.html.erb b/app/views/custom_fields/_index.html.erb new file mode 100644 index 000000000..a6495fbfe --- /dev/null +++ b/app/views/custom_fields/_index.html.erb @@ -0,0 +1,35 @@ + + + + + + <% if tab[:name] == 'IssueCustomField' %> + + + <% end %> + + + + + <% (@custom_fields_by_type[tab[:name]] || []).sort.each do |custom_field| -%> + "> + + + + <% if tab[:name] == 'IssueCustomField' %> + + + <% end %> + + + + <% end; reset_cycle %> + +
<%=l(:field_name)%><%=l(:field_field_format)%><%=l(:field_is_required)%><%=l(:field_is_for_all)%><%=l(:label_used_by)%><%=l(:button_sort)%>
<%= link_to h(custom_field.name), :action => 'edit', :id => custom_field %><%= l(Redmine::CustomFieldFormat.label_for(custom_field.field_format)) %><%= checked_image custom_field.is_required? %><%= checked_image custom_field.is_for_all? %><%= l(:label_x_projects, :count => custom_field.projects.count) if custom_field.is_a? IssueCustomField and !custom_field.is_for_all? %><%= reorder_links('custom_field', {:action => 'edit', :id => custom_field}) %> + <%= link_to(l(:button_delete), { :action => 'destroy', :id => custom_field }, + :method => :post, + :confirm => l(:text_are_you_sure), + :class => 'icon icon-del') %> +
+ +

<%= link_to l(:label_custom_field_new), {:action => 'new', :type => tab[:name]}, :class => 'icon icon-add' %>

diff --git a/app/views/custom_fields/_index.rhtml b/app/views/custom_fields/_index.rhtml deleted file mode 100644 index a6495fbfe..000000000 --- a/app/views/custom_fields/_index.rhtml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - <% if tab[:name] == 'IssueCustomField' %> - - - <% end %> - - - - - <% (@custom_fields_by_type[tab[:name]] || []).sort.each do |custom_field| -%> - "> - - - - <% if tab[:name] == 'IssueCustomField' %> - - - <% end %> - - - - <% end; reset_cycle %> - -
<%=l(:field_name)%><%=l(:field_field_format)%><%=l(:field_is_required)%><%=l(:field_is_for_all)%><%=l(:label_used_by)%><%=l(:button_sort)%>
<%= link_to h(custom_field.name), :action => 'edit', :id => custom_field %><%= l(Redmine::CustomFieldFormat.label_for(custom_field.field_format)) %><%= checked_image custom_field.is_required? %><%= checked_image custom_field.is_for_all? %><%= l(:label_x_projects, :count => custom_field.projects.count) if custom_field.is_a? IssueCustomField and !custom_field.is_for_all? %><%= reorder_links('custom_field', {:action => 'edit', :id => custom_field}) %> - <%= link_to(l(:button_delete), { :action => 'destroy', :id => custom_field }, - :method => :post, - :confirm => l(:text_are_you_sure), - :class => 'icon icon-del') %> -
- -

<%= link_to l(:label_custom_field_new), {:action => 'new', :type => tab[:name]}, :class => 'icon icon-add' %>