@@ -1,33 +1,35 | |||
|
1 | 1 | <%= render :partial => 'action_menu' %> |
|
2 | 2 | |
|
3 | 3 | <h2><%=l(:label_workflow)%></h2> |
|
4 | 4 | |
|
5 | 5 | <% if @workflow_counts.empty? %> |
|
6 | 6 | <p class="nodata"><%= l(:label_no_data) %></p> |
|
7 | 7 | <% else %> |
|
8 | <div class="autoscroll"> | |
|
8 | 9 | <table class="list"> |
|
9 | 10 | <thead> |
|
10 | 11 | <tr> |
|
11 | 12 | <th></th> |
|
12 | 13 | <% @workflow_counts.first.last.each do |role, count| %> |
|
13 | 14 | <th> |
|
14 | 15 | <%= content_tag(role.builtin? ? 'em' : 'span', h(role.name)) %> |
|
15 | 16 | </th> |
|
16 | 17 | |
|
17 | 18 | <% end %> |
|
18 | 19 | </tr> |
|
19 | 20 | </thead> |
|
20 | 21 | <tbody> |
|
21 | 22 | <% @workflow_counts.each do |tracker, roles| -%> |
|
22 | 23 | <tr class="<%= cycle('odd', 'even') %>"> |
|
23 | 24 | <td><%= h tracker %></td> |
|
24 | 25 | <% roles.each do |role, count| -%> |
|
25 | 26 | <td align="center"> |
|
26 | 27 | <%= link_to((count > 1 ? count : image_tag('false.png')), {:action => 'edit', :role_id => role, :tracker_id => tracker}, :title => l(:button_edit)) %> |
|
27 | 28 | </td> |
|
28 | 29 | <% end -%> |
|
29 | 30 | </tr> |
|
30 | 31 | <% end -%> |
|
31 | 32 | </tbody> |
|
32 | 33 | </table> |
|
34 | </div> | |
|
33 | 35 | <% end %> |
General Comments 0
You need to be logged in to leave comments.
Login now