summaryrefslogtreecommitdiff
path: root/app/views/version_reports/_main_issue_row.html.erb
blob: 8ca490489bb9ba1b571afa376c3c8e33ae096f01 (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
<tr><td>&nbsp;</td></tr>
<tr>
  <td>
    <h1><%= display_issue(issue) %></h1>
    <%= hour_budget_error(issue) %>
  </td>
  <td>
    <%= issue_time(issue) %>
  </td>
  <td>
    <%= issue_money(issue, :format) %>
  </td>
</tr>
<tr>
  <td colspan="3">
    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 -%>