<%=l(:label_change_log)%>
<% if @versions.empty? %>
<%= l(:label_no_data) %>
<% end %>
<% @versions.each do |version| %>
<%= version.name %>
<% if 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") unless @selected_tracker_ids.empty?
issues ||= []
%>
<% if !issues.empty? %>
<% issues.each do |issue| %>
- <%= link_to_issue(issue) %>: <%=h issue.subject %>
<% end %>
<% end %>
<% end %>
<% content_for :sidebar do %>
<% form_tag do %>
<%= l(:label_change_log) %>
<% @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 %>
<%= l(:label_version_plural) %>
<% @versions.each do |version| %>
<%= link_to version.name, :anchor => version.name %>
<% end %>
<% end %>