<%= link_to_function('', "toggleCheckboxesBySelector('table.transitions-#{name} input[type=checkbox]:not(:disabled).old-status-#{old_status.try(:id) || 0}')",
:title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}",
:class => 'no-tooltip icon-only icon-checked') %>
<% if old_status %>
<% old_status_name = old_status.name %>
<%= old_status_name %>
<% else %>
<% old_status_name = l(:label_issue_new) %>
<%= content_tag('em', old_status_name) %>
<% end %>
|
<% for new_status in @statuses -%>
<% checked = (old_status == new_status) || (transition_counts[[old_status, new_status]] > 0) %>
<%= transition_tag transition_counts[[old_status, new_status]], old_status, new_status, name %>
|
<% end -%>
<% end %>