<%#-- copyright OpenProject is a project management system. Copyright (C) 2012-2013 the OpenProject Team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. See doc/COPYRIGHT.rdoc for more details. ++#%> <%= render :partial => 'action_menu' %>

<%= Workflow.model_name.human %>

<% 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('red_x.png')), {:action => 'edit', :role_id => role, :tracker_id => tracker}, :title => l(:button_edit)) %>
<% end %>