Mercurial > hg > soundsoftware-site
comparison app/views/workflows/.svn/text-base/index.rhtml.svn-base @ 514:7eba09d624db live
Merge
author | Chris Cannam |
---|---|
date | Thu, 14 Jul 2011 10:50:53 +0100 |
parents | 051f544170fe |
children |
comparison
equal
deleted
inserted
replaced
512:b9aebdd7dd40 | 514:7eba09d624db |
---|---|
3 <h2><%=l(:label_workflow)%></h2> | 3 <h2><%=l(:label_workflow)%></h2> |
4 | 4 |
5 <% if @workflow_counts.empty? %> | 5 <% if @workflow_counts.empty? %> |
6 <p class="nodata"><%= l(:label_no_data) %></p> | 6 <p class="nodata"><%= l(:label_no_data) %></p> |
7 <% else %> | 7 <% else %> |
8 <div class="autoscroll"> | |
8 <table class="list"> | 9 <table class="list"> |
9 <thead> | 10 <thead> |
10 <tr> | 11 <tr> |
11 <th></th> | 12 <th></th> |
12 <% @workflow_counts.first.last.each do |role, count| %> | 13 <% @workflow_counts.first.last.each do |role, count| %> |
21 <% @workflow_counts.each do |tracker, roles| -%> | 22 <% @workflow_counts.each do |tracker, roles| -%> |
22 <tr class="<%= cycle('odd', 'even') %>"> | 23 <tr class="<%= cycle('odd', 'even') %>"> |
23 <td><%= h tracker %></td> | 24 <td><%= h tracker %></td> |
24 <% roles.each do |role, count| -%> | 25 <% roles.each do |role, count| -%> |
25 <td align="center"> | 26 <td align="center"> |
26 <%= link_to((count > 1 ? count : image_tag('false.png')), {:action => 'edit', :role_id => role, :tracker_id => tracker}, :title => l(:button_edit)) %> | 27 <%= link_to((count > 0 ? count : image_tag('false.png')), {:action => 'edit', :role_id => role, :tracker_id => tracker}, :title => l(:button_edit)) %> |
27 </td> | 28 </td> |
28 <% end -%> | 29 <% end -%> |
29 </tr> | 30 </tr> |
30 <% end -%> | 31 <% end -%> |
31 </tbody> | 32 </tbody> |
32 </table> | 33 </table> |
34 </div> | |
33 <% end %> | 35 <% end %> |