Mercurial > hg > soundsoftware-site
annotate .svn/pristine/65/653d3b15d6a3b6957462d2da3ebd8c39d2991134.svn-base @ 1519:afce8026aaeb redmine-2.4-integration
Merge from branch "live"
author | Chris Cannam |
---|---|
date | Tue, 09 Sep 2014 09:34:53 +0100 |
parents | 261b3d9a4903 |
children |
rev | line source |
---|---|
Chris@1464 | 1 <%= title [l(:label_workflow), workflows_edit_path], l(:field_summary) %> |
Chris@1464 | 2 |
Chris@1464 | 3 <% if @workflow_counts.empty? %> |
Chris@1464 | 4 <p class="nodata"><%= l(:label_no_data) %></p> |
Chris@1464 | 5 <% else %> |
Chris@1464 | 6 <div class="autoscroll"> |
Chris@1464 | 7 <table class="list"> |
Chris@1464 | 8 <thead> |
Chris@1464 | 9 <tr> |
Chris@1464 | 10 <th></th> |
Chris@1464 | 11 <% @workflow_counts.first.last.each do |role, count| %> |
Chris@1464 | 12 <th> |
Chris@1464 | 13 <%= content_tag(role.builtin? ? 'em' : 'span', h(role.name)) %> |
Chris@1464 | 14 </th> |
Chris@1464 | 15 |
Chris@1464 | 16 <% end %> |
Chris@1464 | 17 </tr> |
Chris@1464 | 18 </thead> |
Chris@1464 | 19 <tbody> |
Chris@1464 | 20 <% @workflow_counts.each do |tracker, roles| -%> |
Chris@1464 | 21 <tr class="<%= cycle('odd', 'even') %>"> |
Chris@1464 | 22 <td class="name"><%= h tracker %></td> |
Chris@1464 | 23 <% roles.each do |role, count| -%> |
Chris@1464 | 24 <td> |
Chris@1464 | 25 <%= link_to((count > 0 ? count : image_tag('false.png')), {:action => 'edit', :role_id => role, :tracker_id => tracker}, :title => l(:button_edit)) %> |
Chris@1464 | 26 </td> |
Chris@1464 | 27 <% end -%> |
Chris@1464 | 28 </tr> |
Chris@1464 | 29 <% end -%> |
Chris@1464 | 30 </tbody> |
Chris@1464 | 31 </table> |
Chris@1464 | 32 </div> |
Chris@1464 | 33 <% end %> |