2013-07-28 15:50:18 +04:00
|
|
|
<%= title [l(:label_workflow), workflows_edit_path], l(:field_summary) %>
|
2008-09-28 16:03:17 +04:00
|
|
|
|
|
|
|
<% if @workflow_counts.empty? %>
|
|
|
|
<p class="nodata"><%= l(:label_no_data) %></p>
|
|
|
|
<% else %>
|
2010-11-27 12:54:16 +03:00
|
|
|
<div class="autoscroll">
|
2008-09-28 16:03:17 +04:00
|
|
|
<table class="list">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th></th>
|
|
|
|
<% @workflow_counts.first.last.each do |role, count| %>
|
|
|
|
<th>
|
|
|
|
<%= content_tag(role.builtin? ? 'em' : 'span', h(role.name)) %>
|
|
|
|
</th>
|
2011-08-28 03:42:37 +04:00
|
|
|
|
2008-09-28 16:03:17 +04:00
|
|
|
<% end %>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<% @workflow_counts.each do |tracker, roles| -%>
|
|
|
|
<tr class="<%= cycle('odd', 'even') %>">
|
2013-11-12 01:01:21 +04:00
|
|
|
<td class="name"><%= h tracker %></td>
|
2008-09-28 16:03:17 +04:00
|
|
|
<% roles.each do |role, count| -%>
|
2013-11-12 01:01:21 +04:00
|
|
|
<td>
|
2011-02-20 16:13:10 +03:00
|
|
|
<%= link_to((count > 0 ? count : image_tag('false.png')), {:action => 'edit', :role_id => role, :tracker_id => tracker}, :title => l(:button_edit)) %>
|
2008-09-28 16:03:17 +04:00
|
|
|
</td>
|
|
|
|
<% end -%>
|
|
|
|
</tr>
|
|
|
|
<% end -%>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2010-11-27 12:54:16 +03:00
|
|
|
</div>
|
2008-09-28 16:03:17 +04:00
|
|
|
<% end %>
|