annotate app/views/workflows/index.html.erb @ 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@0 2
Chris@0 3 <% if @workflow_counts.empty? %>
Chris@0 4 <p class="nodata"><%= l(:label_no_data) %></p>
Chris@0 5 <% else %>
Chris@119 6 <div class="autoscroll">
Chris@0 7 <table class="list">
Chris@0 8 <thead>
Chris@0 9 <tr>
Chris@0 10 <th></th>
Chris@0 11 <% @workflow_counts.first.last.each do |role, count| %>
Chris@0 12 <th>
Chris@0 13 <%= content_tag(role.builtin? ? 'em' : 'span', h(role.name)) %>
Chris@0 14 </th>
Chris@909 15
Chris@0 16 <% end %>
Chris@0 17 </tr>
Chris@0 18 </thead>
Chris@0 19 <tbody>
Chris@0 20 <% @workflow_counts.each do |tracker, roles| -%>
Chris@0 21 <tr class="<%= cycle('odd', 'even') %>">
Chris@1464 22 <td class="name"><%= h tracker %></td>
Chris@0 23 <% roles.each do |role, count| -%>
Chris@1464 24 <td>
Chris@245 25 <%= link_to((count > 0 ? count : image_tag('false.png')), {:action => 'edit', :role_id => role, :tracker_id => tracker}, :title => l(:button_edit)) %>
Chris@0 26 </td>
Chris@0 27 <% end -%>
Chris@0 28 </tr>
Chris@0 29 <% end -%>
Chris@0 30 </tbody>
Chris@0 31 </table>
Chris@119 32 </div>
Chris@0 33 <% end %>