index.html.erb
33 lines
| 845 B
| text/plain
|
TextLexer
|
r11820 | <%= title [l(:label_workflow), workflows_edit_path], l(:field_summary) %> | ||
|
r1912 | |||
<% if @workflow_counts.empty? %> | ||||
<p class="nodata"><%= l(:label_no_data) %></p> | ||||
<% else %> | ||||
|
r4314 | <div class="autoscroll"> | ||
|
r1912 | <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> | ||||
|
r6561 | |||
|
r1912 | <% end %> | ||
</tr> | ||||
</thead> | ||||
<tbody> | ||||
<% @workflow_counts.each do |tracker, roles| -%> | ||||
<tr class="<%= cycle('odd', 'even') %>"> | ||||
|
r12038 | <td class="name"><%= h tracker %></td> | ||
|
r1912 | <% roles.each do |role, count| -%> | ||
|
r12038 | <td> | ||
|
r4770 | <%= link_to((count > 0 ? count : image_tag('false.png')), {:action => 'edit', :role_id => role, :tracker_id => tracker}, :title => l(:button_edit)) %> | ||
|
r1912 | </td> | ||
<% end -%> | ||||
</tr> | ||||
<% end -%> | ||||
</tbody> | ||||
</table> | ||||
|
r4314 | </div> | ||
|
r1912 | <% end %> | ||