From: Toshi MARUYAMA Date: Sat, 27 Aug 2011 23:49:35 +0000 (+0000) Subject: rename .rhtml to .html.erb of app/views/workflows/index.rhtml. X-Git-Tag: 1.3.0~1277 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=de11d2764fd786eada91279ad3c8ccf74730426f;p=redmine.git rename .rhtml to .html.erb of app/views/workflows/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@6685 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/workflows/index.html.erb b/app/views/workflows/index.html.erb new file mode 100644 index 000000000..f05386c9b --- /dev/null +++ b/app/views/workflows/index.html.erb @@ -0,0 +1,35 @@ +<%= render :partial => 'action_menu' %> + +

<%=l(:label_workflow)%>

+ +<% if @workflow_counts.empty? %> +

<%= l(:label_no_data) %>

+<% else %> +
+ + + + + <% @workflow_counts.first.last.each do |role, count| %> + + + <% end %> + + + +<% @workflow_counts.each do |tracker, roles| -%> + + + <% roles.each do |role, count| -%> + + <% end -%> + +<% end -%> + +
+ <%= content_tag(role.builtin? ? 'em' : 'span', h(role.name)) %> +
<%= h tracker %> + <%= link_to((count > 0 ? count : image_tag('false.png')), {:action => 'edit', :role_id => role, :tracker_id => tracker}, :title => l(:button_edit)) %> +
+
+<% end %> diff --git a/app/views/workflows/index.rhtml b/app/views/workflows/index.rhtml deleted file mode 100644 index f05386c9b..000000000 --- a/app/views/workflows/index.rhtml +++ /dev/null @@ -1,35 +0,0 @@ -<%= render :partial => 'action_menu' %> - -

<%=l(:label_workflow)%>

- -<% if @workflow_counts.empty? %> -

<%= l(:label_no_data) %>

-<% else %> -
- - - - - <% @workflow_counts.first.last.each do |role, count| %> - - - <% end %> - - - -<% @workflow_counts.each do |tracker, roles| -%> - - - <% roles.each do |role, count| -%> - - <% end -%> - -<% end -%> - -
- <%= content_tag(role.builtin? ? 'em' : 'span', h(role.name)) %> -
<%= h tracker %> - <%= link_to((count > 0 ? count : image_tag('false.png')), {:action => 'edit', :role_id => role, :tracker_id => tracker}, :title => l(:button_edit)) %> -
-
-<% end %>