<%=l(:label_change_log)%>

<% form_tag do %>

<%=l(:label_tracker_plural)%>
<% @trackers.each do |tracker| %> <%= check_box_tag "tracker_ids[]", tracker.id, (@selected_tracker_ids.include? tracker.id.to_s) %> <%= tracker.name %>
<% end %>

<%= submit_tag l(:button_apply), :class => 'button-small' %>

<% end %>
<% if @versions.empty? %>

<%= l(:label_no_data) %>

<% end %> <% @versions.each do |version| %>

<%= version.name %>

<% if version.completed? %>

<%= format_date(version.effective_date) %>

<% elsif version.effective_date %>

<%=l(:label_roadmap_due_in)%> <%= distance_of_time_in_words Time.now, version.effective_date %> (<%= format_date(version.effective_date) %>)

<% end %>

<%=h version.description %>

<% issues = version.fixed_issues.find(:all, :include => [:status, :tracker], :conditions => ["#{IssueStatus.table_name}.is_closed=? AND #{Issue.table_name}.tracker_id in (#{@selected_tracker_ids.join(',')})", true], :order => "#{Tracker.table_name}.position") %> <% if !issues.empty? %> <% end %> <% end %>