<%= render :partial => "common/scrum_menu" %>

<%= l(:label_sprint_stats) %>

<%= render :partial => "post_its/sprint_board/head", :locals => {:project => @project, :sprint => @sprint, :path => method(:stats_sprint_path)} %> <% content_for :header_tags do %> <%= javascript_include_tag "d3.min.js", :plugin => "scrum" %> <%= javascript_include_tag "xcharts.min.js", :plugin => "scrum" %> <%= javascript_include_tag "nv.d3.min.js", :plugin => "scrum" %> <%= stylesheet_link_tag "xcharts.min.css", :plugin => "scrum" %> <%= stylesheet_link_tag "nv.d3.min.css", :plugin => "scrum" %> <% end %>

<%= l(:label_estimated_vs_done_effort) %>

<%- if @members_efforts.count < 1 -%>

<%= l(:label_no_data) %>

<%- else -%> <%- @days.each do |day| -%> <%- end -%> <%- @members_efforts.each do |member| -%> <%- @days.each do |day| -%> <%- end -%> <%- @days.each do |day| -%> <%- end -%> <%- end -%> <%- if @members_efforts.count > 1 -%> <%- @days.each do |day| -%> <%- end -%> <%- @days.each do |day| -%> <%- end -%> <%- end -%>
<%= l(:label_member) %> <%= day[:label] %><%= l(:label_total) %>
<%= link_to_user(member[:member]) %> <%= l(:label_estimated_effort) %> <%- day_info = member[:estimated_efforts][:days][day[:date]] -%> <%- if day_info -%> <%= "#{day_info.round(2)} h" %> <%- end -%> <%= member[:estimated_efforts][:total].round(2) %> h
<%= l(:label_done_effort) %> <%- day_info = member[:done_efforts][:days][day[:date]] -%> <%- if day_info -%> <%= "#{day_info.round(2)} h" %> <%- end -%> <%= member[:done_efforts][:total].round(2) %> h
<%= l(:label_total) %> <%= l(:label_estimated_effort) %> <%- day_info = @estimated_efforts_totals[:days][day[:date]] -%> <%- if day_info -%> <%= "#{day_info.round(2)} h" %> <%- end -%> <%= @estimated_efforts_totals[:total].round(2) %> h
<%= l(:label_done_effort) %> <%- day_info = @done_efforts_totals[:days][day[:date]] -%> <%- if day_info -%> <%= "#{day_info.round(2)} h" %> <%- end -%> <%= @done_efforts_totals[:total].round(2) %> h
<%- end -%>

<%= l(:label_sps_by_pbi_category) %>

<%- if @sps_by_pbi_category.count < 1 -%>

<%= l(:label_no_data) %>

<%- else -%> <%= render :partial => "sprints/stat_graph_and_table", :locals => {:graph => {:id => "stats_sps_per_category", :width => 400, :height => 400}, :element => {:label => l(:label_issue_category_plural), :name => :category}, :unit => {:label => l(:label_story_point_unit), :plural_label => l(:label_story_point_plural)}, :rows => @sps_by_pbi_category, :total => @sps_by_pbi_category_total} %> <%- end -%>

<%= l(:label_sps_by_pbi_type) %>

<%- if @sps_by_pbi_type.count < 1 -%>

<%= l(:label_no_data) %>

<%- else -%> <%= render :partial => "sprints/stat_graph_and_table", :locals => {:graph => {:id => "stats_sps_per_pbi_type", :width => 400, :height => 400}, :element => {:label => l(:label_tracker_plural), :name => :tracker}, :unit => {:label => l(:label_story_point_unit), :plural_label => l(:label_story_point_plural)}, :rows => @sps_by_pbi_type, :total => @sps_by_pbi_type_total} %> <%- end -%>

<%= l(:label_sps_by_pbi_creation_date) %>

<%- if @sps_by_pbi_creation_date.count < 1 -%>

<%= l(:label_no_data) %>

<%- else -%> <%= render :partial => "sprints/stat_graph_and_table", :locals => {:graph => {:id => "stats_sps_by_creation_date", :width => 400, :height => 400}, :element => {:label => l(:label_tracker_plural), :name => :created_on}, :unit => {:label => l(:label_story_point_unit), :plural_label => l(:label_story_point_plural)}, :rows => @sps_by_pbi_creation_date, :total => @sps_by_pbi_creation_date_total} %> <%- end -%>

<%= l(:label_time_by_activity) %>

<%- if @effort_by_activity.count < 1 -%>

<%= l(:label_no_data) %>

<%- else -%> <%= render :partial => "sprints/stat_graph_and_table", :locals => {:graph => {:id => "stats_time_per_activity", :width => 400, :height => 400}, :element => {:label => l(:enumeration_activities), :name => :activity}, :unit => {:label => "h", :plural_label => l(:label_time_entry_plural)}, :rows => @effort_by_activity, :total => @effort_by_activity_total} %> <%- end -%> <%= render :partial => "common/scrum_footer" %>