annotate .svn/pristine/61/61f7f063ffaec55dad0c8a315b8506b208b3d80d.svn-base @ 1298:4f746d8966dd redmine_2.3_integration

Merge from redmine-2.3 branch to create new branch redmine-2.3-integration
author Chris Cannam
date Fri, 14 Jun 2013 09:28:30 +0100
parents cbb26bc654de
children
rev   line source
Chris@909 1 <%= render :partial => 'action_menu' %>
Chris@909 2
Chris@909 3 <h2><%=l(:label_workflow)%></h2>
Chris@909 4
Chris@909 5 <% if @workflow_counts.empty? %>
Chris@909 6 <p class="nodata"><%= l(:label_no_data) %></p>
Chris@909 7 <% else %>
Chris@909 8 <div class="autoscroll">
Chris@909 9 <table class="list">
Chris@909 10 <thead>
Chris@909 11 <tr>
Chris@909 12 <th></th>
Chris@909 13 <% @workflow_counts.first.last.each do |role, count| %>
Chris@909 14 <th>
Chris@909 15 <%= content_tag(role.builtin? ? 'em' : 'span', h(role.name)) %>
Chris@909 16 </th>
Chris@909 17
Chris@909 18 <% end %>
Chris@909 19 </tr>
Chris@909 20 </thead>
Chris@909 21 <tbody>
Chris@909 22 <% @workflow_counts.each do |tracker, roles| -%>
Chris@909 23 <tr class="<%= cycle('odd', 'even') %>">
Chris@909 24 <td><%= h tracker %></td>
Chris@909 25 <% roles.each do |role, count| -%>
Chris@909 26 <td align="center">
Chris@909 27 <%= link_to((count > 0 ? count : image_tag('false.png')), {:action => 'edit', :role_id => role, :tracker_id => tracker}, :title => l(:button_edit)) %>
Chris@909 28 </td>
Chris@909 29 <% end -%>
Chris@909 30 </tr>
Chris@909 31 <% end -%>
Chris@909 32 </tbody>
Chris@909 33 </table>
Chris@909 34 </div>
Chris@909 35 <% end %>