<%=l(:label_change_log)%>
<% if @versions.empty? %>
<%= l(:label_no_data) %>
<% end %>
<% @versions.each do |version| %>
<%= tag 'a', :name => version.name %>
<%= link_to h(version.name), :controller => 'versions', :action => 'show', :id => version %>
<% if version.effective_date %>
<%= format_date(version.effective_date) %>
<% end %>
<%=h version.description %>
<% issues = version.fixed_issues.find(:all,
:include => [:status, :tracker, :priority],
: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) %>
<% end %>
<% end %>
<% end %>
<% content_for :sidebar do %>
<% form_tag({},:method => :get) do %>
<%= l(:label_change_log) %>
<% @trackers.each do |tracker| %>
<% 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 %>