Created
December 6, 2016 13:05
-
-
Save eqbal/ea071e39acb783c7c25d4b56f9081814 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- statistics/index.html.erb --> | |
<h3>Statistics</h3> | |
<br/> | |
<table class="table table-striped"> | |
<tr> | |
<th>Week #</th> | |
<th>From</th> | |
<th>To</th> | |
<th>Count</th> | |
<th>Avg Distance <small>(Km)</small></th> | |
<th>Avg Speed <small>(Km/H)</small></th> | |
</tr> | |
<% @weekly_reports.each do |weekly_report| %> | |
<tr> | |
<td><%= weekly_report.week_number %></td> | |
<td><%= weekly_report.date_from %></td> | |
<td><%= weekly_report.date_to %></td> | |
<td><%= weekly_report.count_entries %></td> | |
<td><%= weekly_report.avg_distance %></td> | |
<td><%= weekly_report.avg_speed %></td> | |
</tr> | |
<% end %> | |
</table> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment