2007-03-12 20:59:02 +03:00
<h2><%=l(:label_change_log)%></h2>
2007-09-22 17:17:49 +04:00
<% if @versions.empty? %>
<p class="nodata"><%= l(:label_no_data) %></p>
2007-03-12 20:59:02 +03:00
<% end %>
2007-05-20 21:46:02 +04:00
<% @versions.each do |version| %>
2009-11-15 18:44:48 +03:00
<%= tag 'a', :name => version.name %>
2009-12-06 13:28:20 +03:00
<h3 class="icon22 icon22-package"><%= link_to_version version %></h3>
2007-09-03 00:47:41 +04:00
<% if version.effective_date %>
2007-05-20 21:46:02 +04:00
<p><%= format_date(version.effective_date) %></p>
<% end %>
<p><%=h version.description %></p>
2009-12-06 13:28:20 +03:00
<% 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?
2007-08-15 14:45:46 +04:00
issues ||= []
2007-05-20 21:46:02 +04:00
%>
<% if !issues.empty? %>
2007-03-12 20:59:02 +03:00
<ul>
2007-05-20 21:46:02 +04:00
<% issues.each do |issue| %>
2009-11-14 15:53:50 +03:00
<li><%= link_to_issue(issue) %></li>
2007-05-20 21:46:02 +04:00
<% end %>
</ul>
<% end %>
2007-03-12 20:59:02 +03:00
<% end %>
2007-09-22 17:17:49 +04:00
<% content_for :sidebar do %>
2009-01-26 04:47:51 +03:00
<% form_tag({},:method => :get) do %>
2007-09-22 17:17:49 +04:00
<h3><%= l(:label_change_log) %></h3>
<% @trackers.each do |tracker| %>
2007-10-01 19:22:03 +04:00
<label><%= check_box_tag "tracker_ids[]", tracker.id, (@selected_tracker_ids.include? tracker.id.to_s) %>
<%= tracker.name %></label><br />
2007-09-22 17:17:49 +04:00
<% end %>
2009-12-06 13:28:20 +03:00
<% if @project.descendants.active.any? %>
<%= hidden_field_tag 'with_subprojects', 0 %>
<br /><label><%= check_box_tag 'with_subprojects', 1, @with_subprojects %> <%=l(:label_subproject_plural)%></label>
<% end %>
2007-09-22 17:17:49 +04:00
<p><%= submit_tag l(:button_apply), :class => 'button-small' %></p>
<% end %>
<h3><%= l(:label_version_plural) %></h3>
<% @versions.each do |version| %>
2009-12-06 13:28:20 +03:00
<%= link_to format_version_name(version), :anchor => version.name %><br />
2007-09-22 17:17:49 +04:00
<% end %>
<% end %>