Performance improvement on workflow setup screen.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@957 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2007-12-07 11:19:30 +00:00
parent a79cf8d574
commit 5e38bd9363
3 changed files with 16 additions and 9 deletions
+6 -8
View File
@@ -35,18 +35,16 @@
<% for old_status in @statuses %>
<tr>
<td><%= old_status.name %></td>
<% for new_status in @statuses %>
<td><%= old_status.name %></td>
<% new_status_ids_allowed = old_status.find_new_statuses_allowed_to(@role, @tracker).collect(&:id) -%>
<% for new_status in @statuses -%>
<td align="center">
<input type="checkbox"
<input type="checkbox"
name="issue_status[<%= old_status.id %>][]"
value="<%= new_status.id %>"
<%if old_status.new_statuses_allowed_to(@role, @tracker).include? new_status%>checked="checked"<%end%>
>
<%= 'checked="checked"' if new_status_ids_allowed.include? new_status.id %>>
</td>
<% end %>
<% end -%>
</tr>
<% end %>
</table>