##// END OF EJS Templates
Don't require category or target version when they are not available (#20583)....
Don't require category or target version when they are not available (#20583). git-svn-id: http://svn.redmine.org/redmine/trunk@14733 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r13368:f731545c619b
r14351:68620da79ab5
Show More
index.html.erb
33 lines | 867 B | text/plain | TextLexer
<%= title [l(:label_workflow), workflows_edit_path], l(:field_summary) %>
<% if @roles.empty? || @trackers.empty? %>
<p class="nodata"><%= l(:label_no_data) %></p>
<% else %>
<div class="autoscroll">
<table class="list">
<thead>
<tr>
<th></th>
<% @roles.each do |role| %>
<th>
<%= content_tag(role.builtin? ? 'em' : 'span', role.name) %>
</th>
<% end %>
</tr>
</thead>
<tbody>
<% @trackers.each do |tracker| -%>
<tr class="<%= cycle('odd', 'even') %>">
<td class="name"><%= tracker.name %></td>
<% @roles.each do |role| -%>
<% count = @workflow_counts[[tracker.id, role.id]] || 0 %>
<td>
<%= link_to((count > 0 ? count : image_tag('false.png')), {:action => 'edit', :role_id => role, :tracker_id => tracker}, :title => l(:button_edit)) %>
</td>
<% end -%>
</tr>
<% end -%>
</tbody>
</table>
</div>
<% end %>