summaryrefslogtreecommitdiffstats
path: root/app/views/projects/changelog.rhtml
blob: 91c5b84ec1abe0b2d78b1aa153098e32eaee1010 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<h2><%=l(:label_change_log)%></h2>

<div class="rightbox" style="width:140px;">
<% form_tag do %>
<p><strong><%=l(:label_tracker_plural)%></strong><br />
<% @trackers.each do |tracker| %>
  <%= check_box_tag "tracker_ids[]", tracker.id, (@selected_tracker_ids.include? tracker.id.to_s) %>
  <%= tracker.name %><br />
<% end %></p>
<p><center><%= submit_tag l(:button_apply), :class => 'button-small' %></center></p>
<% end %>
</div>

<% if @versions.empty? %><p><i><%= l(:label_no_data) %></i></p><% end %>

<% @versions.each do |version| %>   
    <a name="<%= version.name %>"><h3 class="icon22 icon22-package"><%= version.name %></h3></a>
    <% if version.effective_date %>
      <p><%= format_date(version.effective_date) %></p>
    <% end %>
    <p><%=h version.description %></p>
    <% 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? %>
    <ul>
      <% issues.each do |issue| %>
        <li><%= link_to_issue(issue) %>: <%=h issue.subject %></li>
      <% end %>
    </ul>
    <% end %>
<% end %>