<%=l(:label_change_log)%>
<% if @versions.empty? %>
<%= l(:label_no_data) %>
<% end %>
<% @versions.each do |version| %>
<%= tag 'a', :name => version.name %>
<%= link_to_version version %>
<% if version.effective_date %>
<%= format_date(version.effective_date) %>
<% end %>
<%=h version.description %>
<% issues = version.fixed_issues.visible.find(:all,
:include => [:status, :tracker, :priority],
:conditions => ["#{Issue.table_name}.project_id = ? AND #{IssueStatus.table_name}.is_closed=? AND #{Issue.table_name}.tracker_id in (?)", @project.id, true, @selected_tracker_ids],
:order => "#{Tracker.table_name}.position") unless @selected_tracker_ids.empty?
issues ||= []
%>
<% if !issues.empty? %>
<% issues.each do |issue| %>
- <%= link_to_issue(issue) %>
<% end %>
<% end %>
<% end %>
<% content_for :sidebar do %>
<% form_tag({},:method => :get) do %>
<%= l(:label_change_log) %>
<% @trackers.each do |tracker| %>
<% end %>
<% if @project.descendants.active.any? %>
<%= hidden_field_tag 'with_subprojects', 0 %>
<% end %>
<%= submit_tag l(:button_apply), :class => 'button-small' %>
<% end %>
<%= l(:label_version_plural) %>
<% @versions.each do |version| %>
<%= link_to format_version_name(version), :anchor => version.name %>
<% end %>
<% end %>