Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- series: [{
- name: <%effort.user_id.to_s%>,
- data: [<% @effort_array.each do |effort| %>
- <% if Effort.where(:week_commencing => effort.week_commencing, :user_id => current_user.id).sum(:hours) == 0 %>
- <% else %>
- [Date.UTC(<%= effort.week_commencing.strftime("%Y,%m-1,%d") %>),<%= Effort.where(:week_commencing => effort.week_commencing, :user_id => current_user.id).
- sum(:hours)%>],<% end %><% end %>]
- }]
- });
- });
Add Comment
Please, Sign In to add comment