lk | adds report for bikes fixed per week and some notes

This commit is contained in:
Louis Knapp
2016-07-17 11:56:49 -05:00
parent 87577ab14e
commit daa4b912e6
5 changed files with 42 additions and 3 deletions
@@ -0,0 +1,15 @@
.container
%h1 Bikes Fixed Per Week This Year
%p Because of some discrepancies in the way date data has been stored, this data may be off. Consider this feature *experimental* while this message persists. Contact Louis for more information.
%table.table
%thead
%tr
%th Week beginning
%th Number of Bikes
%th Mechanics Responsible
%tbody
- @weekly_data.each do |week, bikes|
%tr
%td= week.strftime("%m/%d/%y")
%td= bikes.length
%td= bikes.map(&:mechanic).uniq.to_sentence