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 %>
|
|
|
|
<h3 class="icon22 icon22-package"><%= link_to h(version.name), :controller => 'versions', :action => 'show', :id => 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>
|
|
|
|
<% issues = version.fixed_issues.find(:all,
|
2009-11-15 18:42:44 +03:00
|
|
|
:include => [:status, :tracker, :priority],
|
2007-05-20 21:46:02 +04:00
|
|
|
:conditions => ["#{IssueStatus.table_name}.is_closed=? AND #{Issue.table_name}.tracker_id in (#{@selected_tracker_ids.join(',')})", true],
|
2007-08-15 14:45:46 +04:00
|
|
|
:order => "#{Tracker.table_name}.position") unless @selected_tracker_ids.empty?
|
|
|
|
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 %>
|
|
|
|
<p><%= submit_tag l(:button_apply), :class => 'button-small' %></p>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<h3><%= l(:label_version_plural) %></h3>
|
|
|
|
<% @versions.each do |version| %>
|
|
|
|
<%= link_to version.name, :anchor => version.name %><br />
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|