diff options
author | elijah <elijah@riseup.net> | 2015-05-28 01:44:24 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2015-05-28 01:44:24 -0700 |
commit | fc1cffcacfa0e885c481e9d993f7c541673912c8 (patch) | |
tree | 88b5f3d25232396bccc017cdc09d61ed31f8df9b /app/views/version_reports/_main_issue_row.html.erb |
initial commit.
Diffstat (limited to 'app/views/version_reports/_main_issue_row.html.erb')
-rw-r--r-- | app/views/version_reports/_main_issue_row.html.erb | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/app/views/version_reports/_main_issue_row.html.erb b/app/views/version_reports/_main_issue_row.html.erb new file mode 100644 index 0000000..32518e9 --- /dev/null +++ b/app/views/version_reports/_main_issue_row.html.erb @@ -0,0 +1,28 @@ +<tr><td> </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 -%> |