From ff46b9ac95eb7a53dacaed4e854964c2c4997ca8 Mon Sep 17 00:00:00 2001 From: elijah Date: Mon, 8 Jun 2015 16:20:21 -0700 Subject: * added totals * better link * report header * configurable rate * version summary --- app/views/hooks/_view_report_link.html.erb | 8 +++++++- app/views/version_reports/_issue_row.html.erb | 2 +- app/views/version_reports/_main_issue_row.html.erb | 4 ++-- app/views/version_reports/_project_row.html.erb | 2 +- app/views/version_reports/show.html.erb | 16 ++++++++++++++++ 5 files changed, 27 insertions(+), 5 deletions(-) (limited to 'app/views') diff --git a/app/views/hooks/_view_report_link.html.erb b/app/views/hooks/_view_report_link.html.erb index fdd59c9..b9758a3 100644 --- a/app/views/hooks/_view_report_link.html.erb +++ b/app/views/hooks/_view_report_link.html.erb @@ -1 +1,7 @@ -

<%= link_to 'Time Tracking Report', version_report_path %> \ No newline at end of file +
+
+
+
+
+
+
diff --git a/app/views/version_reports/_issue_row.html.erb b/app/views/version_reports/_issue_row.html.erb index 7d89e69..25c11c6 100644 --- a/app/views/version_reports/_issue_row.html.erb +++ b/app/views/version_reports/_issue_row.html.erb @@ -4,7 +4,7 @@ <%= display_issue(issue, :tracker) %> - <%= l_hours(issue.total_spent_hours) if @show_time %> + <%= issue_time(issue) %>   diff --git a/app/views/version_reports/_main_issue_row.html.erb b/app/views/version_reports/_main_issue_row.html.erb index c83eb6d..8ca4904 100644 --- a/app/views/version_reports/_main_issue_row.html.erb +++ b/app/views/version_reports/_main_issue_row.html.erb @@ -5,10 +5,10 @@ <%= hour_budget_error(issue) %> - <%= l_hours(issue.total_spent_hours) if @show_time %> + <%= issue_time(issue) %> - <%= hours_to_money(issue.total_spent_hours) if @show_money %> + <%= issue_money(issue, :format) %> diff --git a/app/views/version_reports/_project_row.html.erb b/app/views/version_reports/_project_row.html.erb index ac0acd2..dab51e2 100644 --- a/app/views/version_reports/_project_row.html.erb +++ b/app/views/version_reports/_project_row.html.erb @@ -1,5 +1,5 @@ - + <%= project.name %> diff --git a/app/views/version_reports/show.html.erb b/app/views/version_reports/show.html.erb index 09c2b20..e8c4f70 100644 --- a/app/views/version_reports/show.html.erb +++ b/app/views/version_reports/show.html.erb @@ -1,6 +1,22 @@ <% html_title @version.name %> +<%= report_header(@version) %> + +

<%= @version.description %>

+

<%= report_summary(@version) %>

+ +<% if @show_time || @show_money %> + + + + + +<% end %> <% if @issues.present? %> <%- @issues.each do |issue| -%> <%= render :partial => 'main_issue_row', :locals => {:issue => issue} %> -- cgit v1.2.3
Total + <%= total_time(@version, @issues) %> + + <%= total_money(@version, @issues) if @show_money %> +