summaryrefslogtreecommitdiff
path: root/app/views/version_reports/_main_issue_row.html.erb
blob: 32518e9a0f85d22b11e9d316891589749aab195a (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
<tr><td>&nbsp;</td></tr>
<tr>
  <td>
    <h1><%= display_issue(issue) %></h1>
  </td>
  <td>
    <%= l_hours(issue.total_spent_hours) %>
  </td>
</tr>
<tr>
  <td colspan="2">
    From <%= issue.start_date %> to <%= issue.due_date %>.
    <div class="wiki">
      <%= textilizable issue, :description %>
    </div>
  </td>
</tr>

<%- project = nil -%>
<%- if issue.children.any? -%>
<%-   issue.children.sort{|a,b| a.project.name <=> b.project.name}.each do |child| -%>
<%-     if child.project.name != project -%>
<%-       project = child.project.name -%>
<%=       render :partial => 'project_row', :locals => {:project => child.project} %>
<%-     end -%>
<%=     render :partial => 'issue_row', :locals => {:issue => child, :indent => 1} %>
<%-   end -%>
<%- end -%>