<%= title [l(:label_workflow), edit_workflows_path], l(:field_summary) %> <% if @roles.empty? || @trackers.empty? %>

<%= l(:label_no_data) %>

<% else %>
<% @roles.each do |role| %> <% end %> <% @trackers.each do |tracker| -%> <% @roles.each do |role| -%> <% count = @workflow_counts[[tracker.id, role.id]] || 0 %> <% end -%> <% end -%>
<%= content_tag(role.builtin? ? 'em' : 'span', role.name) %>
<%= tracker.name %> <%= link_to(count, {:action => 'edit', :role_id => role, :tracker_id => tracker}, :title => l(:button_edit), :class => ('decoration-red' if count == 0)) %>
<% end %>